Skip to content

Commit

Permalink
🎨 decrease timeout for scheduling (TryGhost#7556)
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 authored and mixonic committed Oct 28, 2016
1 parent 2c038eb commit 5c57db6
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 5c57db6

Please sign in to comment.