Skip to main content

Module catalog

Module catalog 

Source
Expand description

Catalog-backed startup API for keeping handlers, job definitions, schedules, and workflow steps aligned.

JobCatalog is the primary facade. Applications register handlers once, sync the catalog’s definition defaults to PostgreSQL, and use the catalog helpers to build enqueue, schedule, and workflow inputs with job-type validation at the call site.

Catalog defaults apply to every registered entry. This includes JobCatalogDefaults::is_enabled; per-job enabled overrides are not modeled by the catalog API yet.

Structs§

CatalogJobEnqueueInput
Input for building a JobEnqueue from a catalog-backed job type.
CatalogJobScheduleInput
Input for building a JobScheduleUpsert from a catalog-backed job type.
CatalogWorkflowDagBuilder
Workflow DAG builder that validates job types against a JobCatalog.
JobCatalog
Single-source registry of job handlers, definition defaults, and enqueue helpers.
JobCatalogDefaults
Default values applied when syncing catalog jobs to job_definitions.
JobCatalogExactSyncReport
Result returned by JobCatalog::sync_definitions_exact.
JobCatalogSyncReport
Result returned by JobCatalog::sync_definitions.
JobCatalogSyncScope
Explicit owned job-type scope used by JobCatalog::sync_definitions_exact.

Enums§

CatalogError
Error returned by super::JobCatalog validation, sync, and helper methods.