mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ SchedulingDefault.prototype._execute = function (jobs) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
}, diff - 200);
|
}, diff - 70);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue