Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference
Overview
Getting Started
Pipeline Authoring
Execution
    Execution LifecycleBatch vs StreamCheckpoints and OffsetsSchedules
Deployment
Troubleshooting
Examples
Execution

Schedules

A pipeline runs itself when its spec contains a scheduler block. The schedule is stored with the pipeline - there is no separate schedule object to create.

At a glance

  • Spec-native - a scheduler block in the spec; there is no separate schedule object.
  • Cron only - type: cron with a standard 5-field expression; fixed_rate and fixed_delay fail at runtime.
  • One live run - a due trigger is skipped while the pipeline already has a RUNNING run.

Common shape

Code
scheduler: type: cron cron: "0 8 * * *" # every day at 08:00
FieldRequiredPurpose
typeyescron is the only supported type
cronwith type: cronstandard 5-field UNIX cron (minute hour day month weekday)
  • One schedule per pipeline. It is picked up automatically when the pipeline is created or updated - there is no separate "create schedule" step.
  • fixed_rate and fixed_delay pass schema validation but are not implemented - they fail at runtime with Unknown schedule type.
  • Times are evaluated in the scheduler timezone (PIPELINE_SCHEDULER_TIMEZONE, UTC by default). The schema also accepts timezone, start_at, end_at, max_runs, seconds, and rate, but the runtime reads only type and cron - the rest have no effect today.
  • The platform checks for due schedules on a poll interval (PIPELINE_SCHEDULER_POLL_INTERVAL_MS, 30 seconds by default) and fires at most PIPELINE_SCHEDULER_DUE_LIMIT (50) due pipelines per tick.

Enabling and disabling

TerminalCode
# read the current schedule curl -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/{pipelineId}/schedules" # pause or resume curl -X POST -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/{pipelineId}/schedules/disable" curl -X POST -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/{pipelineId}/schedules/enable"
ActionEffect
EnableRecomputes the next run time from now
DisablePauses only - the cron expression and offsets are kept

Both require the pipeline:schedule permission.

While a run is active

A scheduled trigger is skipped if the pipeline already has a RUNNING run. Long-running streaming pipelines do not mix with cron schedules - start those on demand instead (Batch vs Stream).

Restarts and missed runs

The next run time is persisted. If the platform was down when a schedule came due, the schedule fires once on startup and then advances to the next regular time. Missed runs are not replayed, and there is no automatic backfill (Checkpoints and Offsets).

Scheduled runs are attributed to the system user, so run history stays clear about what triggered a run.

On-demand runs

Any saved pipeline can also be run at any time:

TerminalCode
curl -X POST -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/{pipelineId}/exec"

Manual and scheduled runs appear identically in run history, with different creators.

Related pages

  • Execution Lifecycle - statuses, stages, and run history
  • Checkpoints and Offsets - restart and no-backfill behavior
  • Batch vs Stream - why streaming pipelines run on demand
  • User Manual: Schedules - the task-oriented view
Suggest edit
Last modified on November 26, 2026
Checkpoints and OffsetsDeployment
On this page
  • At a glance
  • Common shape
  • Enabling and disabling
  • While a run is active
  • Restarts and missed runs
  • On-demand runs
  • Related pages
YAML