Jobrun
Simple job runner for MongoDB
Usage
$ npm install --save jobrun
or
$ yarn add jobrun
Example of usage
const dbLink = 'mongodb://localhost:27017/jobrunner'; const myJb = dbLink; const DELETE_UNACTIVE_USERS = 'delete unactive users'; myJb; async { await myJbstart; await myJb;};
Documentation
- createJob(url, cb)
- start()
- every(timeout, url)
- stop(url)