Skip to content

Fix reschedule_task double-advancing frequency state for repeated tasks#10

Merged
Curricane merged 1 commit intomasterfrom
fix_advance_task
Mar 4, 2026
Merged

Fix reschedule_task double-advancing frequency state for repeated tasks#10
Curricane merged 1 commit intomasterfrom
fix_advance_task

Conversation

@Curricane
Copy link
Owner

  • Fix reschedule_task to avoid double-advancing frequency state for SecondsRepeated tasks
  • Fix advance_task to use wheel position instead of peek_alarm_timestamp for remaining wait calculation
  • Add comprehensive tests for advance_task with reset_frequency=true/false
  • Add multi-round scheduling verification tests for reset_frequency behavior
  • Improve test assertions for time_to_next_run accuracy

- Fix reschedule_task to avoid double-advancing frequency state for SecondsRepeated tasks
- Fix advance_task to use wheel position instead of peek_alarm_timestamp for remaining wait calculation
- Add comprehensive tests for advance_task with reset_frequency=true/false
- Add multi-round scheduling verification tests for reset_frequency behavior
- Improve test assertions for time_to_next_run accuracy
@Curricane Curricane merged commit 7888b52 into master Mar 4, 2026
8 checks passed
@Curricane Curricane deleted the fix_advance_task branch March 4, 2026 03: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.

1 participant