ARCHOS 525 BLUEPRINT · /d/dgm_int-job-scheduler
Distributed Job & Cron Scheduler Internals (Time Wheels, Leases & Fencing)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_int-job-scheduler) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-job-scheduler)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-job-scheduler" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Distributed Job & Cron Scheduler Internals (Time Wheels, Leases & Fencing) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Scheduled Workflows"]
n1_1[("Partitioned Time Store")]
n2a_2["Lease & Fence Claimer"]
n2b_3[("Dispatch Queue")]
n3_4[("Execution Ledger")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Poll due · SQL"| n1_1
n1_1 -->|"2a. Claim job · CAS"| n2a_2
n1_1 -.->|"2b. Dispatch · Kafka/SQ"| n2b_3
n2a_2 -->|"3a. Log run · Audit"| n3_4
n2b_3 -->|"3b. Sync · Control"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- Scheduled WorkflowsSTATELESS1M+ Cron & Delayed Jobs
- Partitioned Time StoreSTATEFULIndexed by
- Lease & Fence ClaimerSTATELESSFOR UPDATE SKIP LOCKED claim
- Dispatch QueueSTATEFULIdempotent execution envelope
- Execution LedgerSTATEFULTracks run history, jitter & SLA
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Scheduled Workflows → Partitioned Time Store (Poll due)[SQL]
- Partitioned Time Store → Lease & Fence Claimer (Claim job)[CAS]
- Partitioned Time Store → Dispatch Queue (Dispatch)[Kafka/SQ]
- Lease & Fence Claimer → Execution Ledger (Log run)[Audit]
- Dispatch Queue → Execution Ledger (Sync)[Control]
- Execution Ledger → Downstream & OTel (Emit /)[OTLP/API]