Created
October 2, 2019 18:17
-
-
Save rveitch/e029b0780db673a902543fefffb304cf to your computer and use it in GitHub Desktop.
Node Schedule Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const schedule = require('node-schedule'); // https://github.com/node-schedule/node-schedule | |
| const job = schedule.scheduleJob('55 23 * * SUN', () => { | |
| console.log('I am a job scheduled to run at 23:55 every Sunday.'); | |
| }); | |
| console.log('job.nextInvocation:', job.nextInvocation().toString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment