1.4.6 • Published 4 years ago

@galenjs/schedule v1.4.6

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.4.5

4 years ago

1.4.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.2

5 years ago

1.0.0

5 years ago

1.0.16

5 years ago

1.0.15-alpha.1

5 years ago

1.0.15

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

0.7.30

5 years ago

0.7.29

5 years ago