Documentation


Cron jobs

How to create a scheduled job

There are many npm packages which provide you the scheduled jobs functionality.
Cron jobs can be scheduled for example with cron package.

Usage

var CronJob = require('cron').CronJob;
new CronJob('* * * * * *', function(){
  console.log('You will see this message every second');
}, null, true, "America/Los_Angeles");

Learn more about using cron in the cron manual.