Skip to content

feat(controller): add in-memory trigger timer system for periodic jobs#2109

Open
shiyasmohd wants to merge 1 commit intomainfrom
shiyasmohd/in-memory-trigger
Open

feat(controller): add in-memory trigger timer system for periodic jobs#2109
shiyasmohd wants to merge 1 commit intomainfrom
shiyasmohd/in-memory-trigger

Conversation

@shiyasmohd
Copy link
Copy Markdown
Contributor

@shiyasmohd shiyasmohd commented Apr 8, 2026

Replace DB-polling with per-job tokio timers that fire at exact trigger cadence, reconstructed from the event log on boot.

  • Add trigger.rs module with timer map, boot recovery, and fire handler
  • Accept trigger config in Admin API deploy/create endpoints
  • Add reschedule_and_notify helper shared by retry and trigger paths
  • Add get_attempt_count_since_last_completed for per-cycle retry reset
  • TODO: Add start_at and jitter_secs to Trigger

@shiyasmohd shiyasmohd force-pushed the shiyasmohd/in-memory-trigger branch from 002d58a to 0d0db05 Compare April 8, 2026 09:55
@shiyasmohd shiyasmohd requested review from LNSD and mitchhs12 April 8, 2026 10:00
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