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

Schedule the next occurrence with respect to restrictions #42

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

idpaterson
Copy link
Collaborator

This change avoids unexpected wakeups of a piston containing a time condition with restrictions. The condition is evaluated correctly according to the restrictions, but the scheduling is set for every day regardless of the restriction.

In the following example reported here the piston wakes at 23:30:00 every day of the week, despite the condition restriction to Friday, Saturday, or Sunday.

There was some code commented out on which this change was based so it is very possible that a problem was discovered back in April (7900693). The modified code should skip to the next non-restricted day and also handle far-future schedules (i.e. > 100 days away).

Review is definitely needed here to avoid negatively affecting other schedules.

@idpaterson idpaterson requested a review from ady624 December 15, 2017 17:43
@idpaterson idpaterson changed the base branch from master to dev January 14, 2018 00:21
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.

1 participant