scheduled_jobs defines functions that are executed on a regular schedule. It specifies the functions at the end of the data pipeline and sets up the schedule for regular execution.

scheduled_jobs
function_name_1:
    schedules:
    - cron: "cron(0 0 * * 1,3,5)"
        is_enabled: true
        timezone: "Asia/Tokyo"
        variables:
            priority: "high"
            retry: 3
    - cron: "cron(0 12 * * 2)"
        is_enabled: false
        timezone: "UTC"
        variables:
            notify: true
            email: "alert@example.com"

Parameters

cron
string

Specify the schedule in cron format.

is_enabled
boolean

Specify whether to enable the scheduled execution. Only enabled schedules will be executed when deployed to the cloud.

timezone
string

Specify the timezone for the scheduled execution in TZ format.

Refer to this link for TZ format.

variables
object

Specify the variables to be passed during scheduled execution.

The variables passed here can be accessed within the function as Jinja variables in SQL or as context.vars["key"] in Python.