Skip to content

Commit

Permalink
🎨 decrease timeout for scheduling
Browse files Browse the repository at this point in the history
refs TryGhost#7555
- temporary fix to make travis green
- that should not have a any bad effect on scheduling
- we just let the job awake a bit later
- the job logic is strong enough to catch the job if setTimeout awakes too late (that can happen, because setTimeout is not accurate)
- if (moment().diff(moment(Number(timestamp))) <= self.beforePingInMs) --> is smaller ensures that even if the diff is negative, it get's executed
  • Loading branch information
kirrg001 committed Oct 12, 2016
1 parent 869a35c commit 98fc3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/scheduling/SchedulingDefault.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ SchedulingDefault.prototype._execute = function (jobs) {
});
});
})();
}, diff - 200);
}, diff - 70);
});
};

Expand Down

0 comments on commit 98fc3ef

Please sign in to comment.