1.4.6 • Published 3 years ago

@galenjs/schedule v1.4.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

schedule

galenjs schedule

Usage

install

pnpm install @galenjs/schedule

example

// index.js
const Schedule = require('./')

const schedule = new Schedule({
  workspace: process.cwd(),
  schedulePath: 'schedule',
  plugins: [],
  app: this.app
})
schedule.init()
setTimeout(() => schedule.softExit(), 200000)

// test.js
exports.schedule = {
  time: '0 * * * * *'
}

exports.task = () => {
  console.log('Time:', Date.now())
}
1.4.6

3 years ago

1.4.5

3 years ago

1.4.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

4 years ago

1.0.0

4 years ago

1.0.16

4 years ago

1.0.15-alpha.1

4 years ago

1.0.15

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

0.7.30

4 years ago

0.7.29

4 years ago