Run jobs on a schedule

Configure your job with the Scheduled trigger to run them on a time-based schedule.

The scheduled trigger type has two options:

  • Define a simple schedule to run a job periodically based on a specified time unit and interval. For example, schedule a job to run every twelve hours, starting when the job first runs.

  • Define an advanced schedule that offers more control over the period, time, and time zone to run the job.

Note

You cannot specify the time for the first run for a simple schedule. The scheduler chooses a time when you configure the schedule.

Add a job schedule

To define a schedule for the job:

  1. In the sidebar, click Workflows.

  2. Click the job name in the Name column on the Jobs tab.

  3. In the Job details panel, click Add trigger.

  4. In Trigger type, select Scheduled.

  5. In Schedule type, select Simple or Advanced.

    1. Simple: Specify an interval and unit of time to run the job.

    2. Advanced: Specify the period, starting time, and time zone. Optionally select the Show Cron Syntax checkbox to display and edit the schedule in Quartz Cron Syntax.

  6. Click Save.

You can also schedule a notebook job directly in the notebook UI.

Note

  • Databricks enforces a minimum interval of 10 seconds between subsequent runs triggered by the schedule of a job regardless of the configuration in the cron expression.

  • You can choose a time zone that observes daylight saving time or UTC. If you select a time zone that observes daylight saving time, an hourly job will be skipped or might appear to be delayed by an hour or two when daylight saving time begins or ends. To run at every hour (absolute time), choose UTC.

  • The job scheduler is not intended for low-latency jobs. Due to network or cloud issues, job runs might occasionally be delayed up to several minutes. In these situations, scheduled jobs run immediately upon service availability.