Expand description
Durable job, schedule, workflow, and admin persistence APIs.
Choose the highest-level API that matches the work. Use enqueue_job for
one independent retried unit. Use workflow DAG APIs such as
enqueue_workflow_run, WorkflowRunEnqueueBuilder, and
WorkflowStepEnqueueBuilder when work has dependencies, fan-out/fan-in,
external gates, or workflow-level idempotency.
Avoid manually orchestrating ordinary workflows by polling job state, enqueueing child jobs from handlers, or storing dependency state in payloads.
Structs§
- Append
Workflow Steps Input - Append
Workflow Steps Result - Complete
External Workflow Step Input - JobCompletion
Update - JobDefinition
Catalog Sync Report - Summary of definition rows changed by a catalog sync.
- JobDefinition
List Filter - JobDefinition
Record - JobDefinition
Update - JobDefinition
Upsert - JobEnqueue
- JobEvent
Record - JobFailure
Update - JobList
Filter - JobLog
Record - JobLog
Record Input - JobMetrics
Record - JobProgress
Update - JobQueue
Record - JobRuntime
Config List Filter - JobRuntime
Config Record - JobRuntime
Config Upsert - JobSchedule
Catalog Sync Entry - One catalog-owned schedule sync entry.
- JobSchedule
Catalog Sync Report - Result returned by
super::schedules::sync_catalog_job_schedules_tx. - JobSchedule
JobType Reference - Schedule row that blocks a job-definition catalog sync.
- JobSchedule
Record - JobSchedule
Upsert - Input for creating or updating a cron-backed job schedule.
- Reap
Expired Lease Deferred Error - Reap
Expired Leases Detailed Result - Reap
Expired Leases Result - Reaped
Terminal Lease Record - Workflow
RunCount Filter - Workflow
RunDb Record - Workflow
RunHandle - Workflow
RunList Filter - Workflow
RunResult Record - Workflow
RunWait Options - Workflow
Step DbRecord - Workflow
Step Dependency DbRecord
Enums§
- Append
Workflow Steps Outcome - JobDefinition
Catalog Sync Error - Error returned while applying a catalog-owned job-definition sync.
- JobDefinition
Catalog Sync Mode - Enabled-state handling for additive catalog definition sync.
- JobPayload
Uuid Array Field Update - JobPayload
Uuid Array Field Update Rejection - Workflow
RunHandle Error - Workflow
RunHandle Scope
Constants§
- DEFAULT_
WORKFLOW_ RUN_ WAIT_ TIMEOUT - Default workflow result wait timeout used by
WorkflowRunWaitOptions. - JOB_
LIST_ PAGE_ LIMIT_ MAX - Maximum page size accepted by public job and workflow list APIs.
- JOB_
SCHEDULE_ MAX_ JITTER_ SECONDS - Maximum accepted schedule jitter, in seconds.
Functions§
- append_
workflow_ steps - append_
workflow_ steps_ tx - cancel_
job - cancel_
workflow_ run_ tx - claim_
due_ schedules_ tx - Claims due schedules for runtime materialization inside an existing transaction.
- claim_
jobs - claim_
jobs_ for_ types - claim_
prestart_ jobs - claim_
prestart_ jobs_ for_ types - complete_
external_ workflow_ step - complete_
external_ workflow_ step_ tx - complete_
job_ failure - complete_
job_ success - Completes a leased job successfully.
- count_
workflow_ runs - count_
workflow_ step_ dependencies - count_
workflow_ steps - deactivate_
schedules_ absent_ from_ names_ tx - Deactivates enabled schedules whose names are in
scope_namesbut absent frompresent_names. - enqueue_
job - Enqueues a job in its own transaction.
- enqueue_
job_ tx - Enqueues a job and returns the existing job id for an identical keyed retry.
- enqueue_
workflow_ run - Enqueues a workflow run in its own transaction.
- enqueue_
workflow_ run_ handle - enqueue_
workflow_ run_ tx - Enqueues a workflow run and returns the existing run for an identical keyed retry.
- get_
job_ by_ id - get_
job_ definition_ by_ type - get_
job_ metrics - get_
job_ payload_ by_ idempotency_ key - get_
job_ runtime_ config_ by_ type - get_
job_ schedule_ by_ name - Loads a schedule by name.
- get_
latest_ job_ payload_ for_ run - get_
latest_ workflow_ run_ by_ type - get_
required_ job_ runtime_ config_ by_ type - get_
workflow_ run_ by_ id - get_
workflow_ run_ by_ type_ and_ idempotency_ key - get_
workflow_ run_ by_ type_ and_ idempotency_ key_ tx - get_
workflow_ run_ id_ for_ job - heartbeat_
job - insert_
job_ definition_ if_ missing_ tx - insert_
job_ log - insert_
job_ runtime_ config_ if_ missing - insert_
job_ runtime_ config_ if_ missing_ tx - list_
job_ definitions - list_
job_ events - list_
job_ logs - list_
job_ runtime_ configs - list_
jobs - list_
workflow_ runs - list_
workflow_ step_ dependencies - list_
workflow_ step_ dependencies_ page - list_
workflow_ step_ keys_ for_ update_ tx - list_
workflow_ steps - list_
workflow_ steps_ page - mark_
schedule_ fired_ tx - Records a successful schedule materialization inside an existing transaction.
- prepare_
schedule_ exact_ sync_ critical_ section_ tx - Applies transaction-local bounds and locks
job_schedulesfor exact schedule sync. - reap_
expired_ leases - reap_
expired_ leases_ with_ diagnostics - reap_
expired_ leases_ with_ terminal_ records - release_
unstarted_ job_ claim - requeue_
job - retrieve_
workflow_ run_ handle - set_
job_ schedule_ active - Activates or deactivates a schedule in its own transaction.
- set_
job_ schedule_ active_ tx - Activates or deactivates a schedule inside an existing transaction.
- set_
job_ schedule_ next_ fire_ at - Moves a schedule’s next fire cursor in its own transaction.
- set_
job_ schedule_ next_ fire_ at_ tx - Moves a schedule’s next fire cursor inside an existing transaction.
- sync_
catalog_ job_ definitions_ exact_ tx - sync_
catalog_ job_ definitions_ tx - sync_
catalog_ job_ schedules_ tx - Upserts catalog-owned schedules inside an existing transaction.
- update_
job_ definition - Updates mutable operator-owned fields on a job definition.
- update_
job_ payload_ uuid_ array_ field - Updates one UUID-array payload field on a direct, unclaimed pending job.
- update_
job_ progress - update_
workflow_ step_ and_ pending_ job_ payload_ tx - upsert_
job_ definition_ tx - Creates or updates a job definition inside an existing transaction.
- upsert_
job_ runtime_ config - upsert_
job_ runtime_ config_ tx - upsert_
job_ schedule - Creates or updates a cron-backed job schedule in its own transaction.
- upsert_
job_ schedule_ tx - Creates or updates a cron-backed job schedule inside an existing transaction.
- workflow_
run_ handle
Type Aliases§
- Workflow
RunRecord Deprecated - Workflow
Step Record Deprecated