Skip to content

Commit

Permalink
fix : reduce the number of calls on octopod
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Trollé committed Jun 7, 2018
1 parent fa58f4c commit e76b920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/features/crons/jobs-synchronizer.js
Expand Up @@ -2,9 +2,9 @@
const scheduler = require('node-schedule');
const jobService = require('../../domain/services/job-service');

const EVERY_24_HOURS = '* */23 * * *';
const EVERY_DAY_AT_EIGHT = '0 8 * * *';

scheduler.scheduleJob(EVERY_24_HOURS, () => {
scheduler.scheduleJob(EVERY_DAY_AT_EIGHT, () => {
console.log('Synchronize jobs from Octopod...');

return jobService.synchronizeJobs()
Expand Down

0 comments on commit e76b920

Please sign in to comment.