Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #34873 #34951

Merged
merged 1 commit into from
Jul 26, 2016
Merged

Fix #34873 #34951

merged 1 commit into from
Jul 26, 2016

Conversation

vutny
Copy link
Contributor

@vutny vutny commented Jul 26, 2016

What does this PR do?

Fixes job scheduling using when parameter (by python-dateutil).
Updates docs about all supported scheduler options.

What issues does this PR fix or reference?

Fixes #34873

Previous Behavior

The reason for the when option doesn't work is that Salt expects when it wakes up from waiting interval loop and the time has come to execute the scheduled function, there must be exactly the same moment to do so -- literally 0 seconds until job need to be run.
If such moment got missed, i.e. Salt woke up after the exact time for function to be run (desired time now is the past for a number of seconds), the job would be discarded.

New Behavior

If Salt is waiting for the scheduled job should be run in some future (data['_when_run'] set to True) and it discovers that time is already passed (seconds became less than 0), then the job run will be triggered. During the next iteration the same job will be skipped till Salt will evaluate dateutil expression to set the scheduled event in the future again.

Tests written?

No

@rallytime
Copy link
Contributor

Go Go Jenkins!

@cachedout cachedout merged commit f23e8c5 into saltstack:2016.3 Jul 26, 2016
@vutny vutny deleted the fix-schedule-dateutil branch August 29, 2016 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants