Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var CronJob = require('cron').CronJob;
  2.  
  3. //Server
  4. app.listen(process.env.APP_PORT, function() {
  5.  
  6. var job = new CronJob('0 35 0 * * *', function() {
  7.  
  8. console.log('job runningggg');
  9. }, function () {
  10. console.log('job done!');
  11. },
  12. true
  13. );
  14.  
  15.  
  16. job.start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement