Skip to content

Commit

Permalink
🎨 decrease timeout for scheduling (#7556)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kirrg001 authored and ErisDS committed Oct 13, 2016
1 parent 869a35c commit 48c0116
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 48c0116

Please sign in to comment.