Scheduler

Defined in dccd.application.scheduler

class Scheduler(registry, store, runs_store=None, events=None)[source]

Bases: object

Orchestrates 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/streams and can be started/stopped from the UI even in dccd ui mode.

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.