Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var CronJob = require('cron').CronJob;
- //Server
- app.listen(process.env.APP_PORT, function() {
- var job = new CronJob('0 35 0 * * *', function() {
- console.log('job runningggg');
- }, function () {
- console.log('job done!');
- },
- true
- );
- job.start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement