Repository navigation
Fix #44583: splay with cron-like scheduled jobs - #44640
Conversation
|
Hi @vutny Two things. First, this needs to go into the develop branch, please. Second, it needs some unit tests added. Thanks. |
|
Hi @cachedout This PR is intended to fix the feature, that supposed to work in releases 2017.7.X, but was probably broken with previous changes (also made by me 😈 ). It would be very sad if it would remain non-working during all FYI @creideiki |
|
@cachedout What @vutny said. I hit the referenced issue (#44583) while trying to use functionality that is documented to be in 2017.7, but doesn't work there. I would strongly prefer getting this bugfix in the next stable update for 2017.7, instead of having to wait for the next major release. |
|
@vutny If you could add some unit tests to this PR that would be greatly appreciated. We of course want to fix bugs in the stable releases as best as we can, but we certainly don't want to add regressions there inadvertently. |
|
Will do! |
|
@rallytime I've added 4 very basic unit tests to verify that periodic time definitions and cron-like schedules are parsed correctly and |
|
@vutny Great! Thank you for adding those. |
|
re-run py3 |
Try to add "splay" time only if next job fire time is still in the future for cron and other type of schedules.
What does this PR do?
Tries to add "splay" time only if next job fire time is still in the future for cron tasks.
What issues does this PR fix or reference?
#44583
Previous Behavior
Using
splaywithcronexpression in scheduled job definition makes it fail each time when execution should be triggered.New Behavior
Scheduled "cron" job should be triggered if next fire time with addition of "splay" time has already passed in current loop interval.
Tests written?
YES, added 4 basic test cases for
eval()function.Commits signed with GPG?
Yes