Changing ramp-off, overnight-off or morning-on settings doesn't reschedule until 00:01, and a ramp set to 0 leaves its job behind #165
Labels
No labels
area/ai
area/backend
area/frontend
area/infra
area/scheduler
area/wled
good-first-issue
priority/high
priority/low
priority/medium
security
type/bug
type/chore
type/ci-cd
type/docs
type/feature
type/qa
v1.0.0
v1.1.0
v1.2.0
v2.0.0
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/Iris-WLED#165
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
Saving schedule settings re-registers tonight's jobs only for the keys in
_SCHEDULE_SETTING_KEYS(routers/schemes.py). That set leaves out:ramp_off_minutesovernight_off_enabled,overnight_off_timemorning_on_enabled,morning_on_mode,morning_on_time,morning_on_offset_minSo a change to any of these takes effect only at the 00:01
reschedule_dailyrun. Turning on the morning window at 20:00 does nothing tonight, and turning it off at 20:00 leaves tonight's already-registeredmorning_on_jobin place.Separately, when an
off_ramp_jobis already scheduled and the ramp is then set to 0, that job isn't removed, so tonight's off still ramps.Found while wiring #149's settings into the same reschedule path (#162).
Fix
build_envelope, so a future setting can't be missed the same way. This is the same drift that caused #147.