Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I was trying to schedule an airflow dag that given a start date it will trigger that dag after every scheduled interval. This is what my dag definition looks like.

with DAG('Some Dag',
         start_date=datetime(year=2020, month=12, day=23),
         schedule_interval=timedelta(days=1, hours=5, minutes=0),
         catchup=False) as dag:

Doesn't it mean that the DAG will run on 2020/12/24 at 05:00:00 UTC? But in reality, it isn't triggering at that moment.

I know I can easily achieve this via a Cron expression. But I want to do it without a Cron expression.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
409 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...