Problem
Design a distributed job scheduler handling immediate, one-time, and recurring tasks with exactly-once guarantees per scheduled run
- Prevent duplicate runs when multiple scheduler nodes detect the same due time
- Recover all missed occurrences from durable checkpoints after scheduler crashes without dropping work
- Handle predictable cron bursts and hot shards by distributing ownership across scheduler nodes
Key Test Points
- Deterministic execution slots
- Leases and fencing tokens
- Shard progress checkpoints
Spot an issue or have a suggestion?