DAGs will run in one of two ways:
- When they are triggered either manually or via the API
- On a defined schedule, which is defined as part of the DAG
example_teradata_operatoris defined to trigger as manually. To define a schedule, any valid crontab schedule value can be passed to the schedule argument.
with DAG(
dag_id="my_daily_dag",
schedule="0 0 * * *"
) as dag: