Scheduler¶
Defined in dccd.application.scheduler
- class Scheduler(registry, store, runs_store=None, events=None)[source]
Bases:
objectOrchestrates JobSpecs (intervals → backfill; supervised → streams).
- Parameters:
- registrySourceRegistry
- storeParquetStore
- runs_storeRunsStore or None
- eventsEventBus
- register_streams(specs)[source]
Register stream workers from config without starting them.
Called by the app lifespan so stream jobs appear in
/api/streamsand can be started/stopped from the UI even indccd uimode.
- async run_now(spec)[source]
Trigger a one-shot backfill for spec immediately.
- async start(specs)[source]
Start all enabled specs (full daemon mode).
- async stop()[source]
Stop all running jobs.