From 48c01162a3e5588b410b9b2ae205cadc759eaaba Mon Sep 17 00:00:00 2001 From: Katharina Irrgang Date: Thu, 13 Oct 2016 10:49:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=20decrease=20timeout=20for=20sc?= =?UTF-8?q?heduling=20(#7556)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs #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 --- core/server/scheduling/SchedulingDefault.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/scheduling/SchedulingDefault.js b/core/server/scheduling/SchedulingDefault.js index d206e78b9a..dfaf7c32f6 100644 --- a/core/server/scheduling/SchedulingDefault.js +++ b/core/server/scheduling/SchedulingDefault.js @@ -170,7 +170,7 @@ SchedulingDefault.prototype._execute = function (jobs) { }); }); })(); - }, diff - 200); + }, diff - 70); }); };