Skip to content

feat: add lifecycle for first due scheduling - #8

Merged
gmaiyani merged 5 commits into
feat/add-first-due-scheduling-implementationfrom
feat/add-lifecycle-for-first-due-scheduling
Nov 16, 2026
Merged

gmaiyani merged 5 commits into
feat/add-first-due-scheduling-implementationfrom
feat/add-lifecycle-for-first-due-scheduling

Conversation

@gmaiyani

@gmaiyani gmaiyani commented Nov 5, 2026 •

Copy link
Copy Markdown
  • Add exact first-due persistence and timing-preserving definition updates
  • Provide an application policy hook for following-run timing changes
  • Preserve immediate requests and consume first-run context on reservation
  • Protect managed writes against concurrent updates and entry replacement
  • Limit WATCH conflict handling to managed operations
  • Support managed transactions with same-slot Redis Cluster keys
  • Preserve ordinary scheduling behavior for existing applications
  • Add focused persistence, concurrency and compatibility tests

- Add optional jitter settings for Helm and Docker Compose
- Calculate stable SHA-256 offsets for recurring WALK and POLL schedules
- Preserve fractional timestamps and normal polling intervals
- Keep stored next dues unchanged during policy transitions
- Apply enable, disable and window changes to the following run
- Preserve inventory refresh delays and immediate recovery requests
- Recover schedules using existing first-run rules before adopting jitter
- Protect managed updates against concurrent writes and schedule replacement
- Add regression coverage and document behavior and known limitations
@gmaiyani
gmaiyani force-pushed the feat/add-lifecycle-for-first-due-scheduling branch from 9762aac to 02264c3 Compare November 6, 2026 07:51
@gmaiyani gmaiyani changed the title Feat/add lifecycle for first due scheduling feat: add lifecycle for first due scheduling Nov 6, 2026
@gmaiyani
gmaiyani marked this pull request as ready for review November 6, 2026 07:57
@gmaiyani
gmaiyani force-pushed the feat/add-lifecycle-for-first-due-scheduling branch from b5d7145 to 93d0766 Compare November 6, 2026 08:37
@gmaiyani
gmaiyani requested a review from ajasnosz November 9, 2026 05:51
Comment thread redbeat/schedulers.py Resolved
Comment thread redbeat/schedulers.py Resolved
- Add EntryAlreadyExists to distinguish creation conflicts from invalid input
- Assign entry identity only after a successful Redis write
- Reuse bounded WATCH retries for first-due creation
- Extend creation-conflict regression coverage and update changelog
@gmaiyani
gmaiyani force-pushed the feat/add-lifecycle-for-first-due-scheduling branch from 07a8f72 to df9ccb9 Compare November 11, 2026 18:15
@gmaiyani
gmaiyani merged commit 69b98c7 into feat/add-first-due-scheduling-implementation Nov 16, 2026
6 checks passed
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.

2 participants