mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
🎨 decrease timeout for scheduling (#7556)
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
This commit is contained in:
parent
869a35c97d
commit
48c01162a3
@ -170,7 +170,7 @@ SchedulingDefault.prototype._execute = function (jobs) {
|
||||
});
|
||||
});
|
||||
})();
|
||||
}, diff - 200);
|
||||
}, diff - 70);
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user