mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Adds a background dispatcher that reads persisted schedules and invokes their targets on time, closing the CRUD-only gap called out in PR #260 and documented under "Not Yet Supported". - SchedulerExpressionParser parses at(), rate(), and 6-field cron() with optional ScheduleExpressionTimezone (default UTC). - ScheduleInvoker delivers to SQS, Lambda, SNS, and EventBridge PutEvents, mirroring the EventBridgeInvoker pattern but adapted to Scheduler's Target model (raw Input string, no JSONPath/template). - ScheduleDispatcher is a single-threaded ticker that scans every schedule, gates on State/StartDate/EndDate, fires due schedules, and honours ActionAfterCompletion=DELETE for one-time at() schedules. - FlexibleTimeWindow, RetryPolicy and DeadLetterConfig are stored but not yet honoured; those can be layered on incrementally. Config (floci.services.scheduler): - invocation-enabled (default true) - tick-interval-seconds (default 10) Unit tests cover the parser (at/rate/cron, timezone, validation) and the dispatcher (firing, once-semantics, delete-after-completion, state gating, start/end windows, unsupported expression handling). Closes #550