# Workflow Scheduler

> The part that starts each pipeline at the right time. It often uses a cron rule.

**Field:** Data Engineering  
**Category:** Orchestration  
**Also known as:** Pipeline Scheduler, Job Scheduler, Pipeline Schedule

## Think of it like

It is like an alarm clock for jobs. When it rings, the job gets up and starts.

## Definition

A workflow scheduler decides when each pipeline runs. Most schedules are written as cron rules, such as every day at 6 am. Some are presets, like hourly or daily. Each run usually covers one slice of time, such as yesterday. The scheduler starts the run, and then the tasks run in order. A pipeline with no schedule only runs when someone starts it.

## Example

Lucy schedules her sales pipeline for 6 am UTC. The night's orders are in by then, and the report is ready before the team logs on.

## Example code

```python
@dag(schedule="0 6 * * *")   # 06:00 every day
@dag(schedule="@hourly")     # top of every hour
@dag(schedule=None)          # only when started by hand
```

Three Airflow schedules. The first is a cron rule: minute 0, hour 6, any day.

## Why it matters

A run that starts too early reads data that is not there yet. One that starts too late leaves people waiting for numbers.

## Common mistake

Forgetting the time zone. A schedule set in UTC can run an hour off for half the year where clocks change.

## Three principles

- **Cron rules.** Minute, hour, day, month and weekday.
- **One slice per run.** Each run covers a set stretch of time.
- **Time zones.** Know which clock the schedule follows.

## Related terms

- [Workflow Orchestration](https://learn.benibix.com/term/data/workflow-orchestration)
- [Data-Aware Scheduling](https://learn.benibix.com/term/data/data-aware-scheduling)
- [Airflow Scheduler](https://learn.benibix.com/term/data/airflow-scheduler)
- [Airflow DAG Run](https://learn.benibix.com/term/data/airflow-dag-run)

![Three ways a run starts, side by side: a clock at 06:00, a sensor that checks every 5 minutes until a file appears, and an upstream table that, once updated, starts the downstream pipeline.](https://learn.benibix.com/diagrams/schedule-triggers.svg)

---

Source: https://learn.benibix.com/term/data/workflow-scheduler
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
