[airflow] Avoid implicit DAG schedule (AIR301) (#14581)

This commit is contained in:
Tzu-ping Chung 2024-11-26 20:38:18 +08:00 committed by GitHub
parent f3dac27e9a
commit fbff4dec3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 133 additions and 2 deletions

View file

@ -0,0 +1,15 @@
from airflow import DAG, dag
DAG(dag_id="class_default_schedule")
DAG(dag_id="class_schedule", schedule="@hourly")
@dag()
def decorator_default_schedule():
pass
@dag(schedule="0 * * * *")
def decorator_schedule():
pass