@galenjs/schedule
v1.4.6
Published
galenjs schedule.
Downloads
3
Readme
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())
}