Ask AI

Schedules#

Schedules are Dagster's way of supporting traditional methods of automation, which allow you to specify when a job should run. Using schedules, you can define a fixed time interval to run a pipeline, such as daily, hourly, or Monday at 9:00 AM.

Each interval of a schedule is called a tick, which is an indication that a job should execute. Ticks kick off runs, which is a single instance of a job being executed.

When viewing a schedule in Dagster's UI, you can see the schedule's definition, executing timezone, targeted jobs and partitions, as well as its tick and run history.


Benefits#

Using schedules helps you:

  • Predictably process and deliver data to stakeholders and business-critical applications
  • Consistently run data pipelines without the need for manual intervention
  • Optimize resource usage by scheduling pipelines to run during off-peak hours

Prerequisites#

Before continuing, you should be familiar with:


How it works#

Schedules run jobs at fixed time intervals and have two main components:

  • A job, which targets a selection of assets or ops

  • A cron expression, which defines when the schedule runs. Simple and complex schedules are supported, allowing you to have fine-grained control over when runs are executed. With cron syntax, you can:

    • Create custom schedules like Every hour from 9:00AM - 5:00PM with cron expressions (0 9-17 * * *)
    • Quickly create basic schedules like Every day at midnight with predefined cron definitions (@daily, @midnight)

    To make creating cron expressions easier, you can use an online tool like Crontab Guru. This tool allows you to create and describe cron expressions in a human-readable format and test the execution dates produced by the expression. Note: While this tool is useful for general cron expression testing, always remember to test your schedules in Dagster to ensure the results are as expected.

For a schedule to run, it must be turned on and an active dagster-daemon process must be running. If you used dagster dev to start the Dagster UI/webserver, the daemon process will be automatically launched alongside the webserver.

After these criteria are met, the schedule will run at the interval specified in the cron expression. Schedules will execute in UTC by default, but you can specify a custom timezone.


Getting started#

Check out these guides to get started with schedules:

From here, you can:

Limitations and notes#