'use strict';

var sync = require('./lib/sync.js');
var cron = require('cron');

var cronJob = cron.job("0 */5 * * * *", function(){
  console.log("START!");
  sync.synchronizeCrmToUmas();
  console.info('cron job completed');
});

cronJob.start();

'use strict';

var sync = require('./lib/sync.js');
var cron = require('cron');

var cronJob = cron.job("0 0 */2 * * *", function(){
  console.log("START!");
  sync.synchronizeCrmToUmas();
  console.info('cron job completed');
});

cronJob.start();

Modify cron for 2 hours
Modify cron for 2 hours
