Skip to content

Schedule the next occurrence with respect to restrictions#42

Open
idpaterson wants to merge 1 commit intoady624:devfrom
idpaterson:pull-requests/schedule-wrt-restrictions
Open

Schedule the next occurrence with respect to restrictions#42
idpaterson wants to merge 1 commit intoady624:devfrom
idpaterson:pull-requests/schedule-wrt-restrictions

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