For All Dags :
Change dags_are_paused_at_creation
to False
in airflow.cfg
.
You will find it in [core]
section.
[core]
# Are DAGs paused by default at creation
dags_are_paused_at_creation = False
Single DAG : If you do not want to change it for all DAGs, you can set is_paused_upon_creation=True
when creating DAG object.
Example:
dag = DAG(
DAG_NAME,
schedule_interval='*/10 * * * *',
default_args=default_args,
is_paused_upon_creation=True)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.