Require help to get start date for a schedule #44868
Unanswered
pratik4891
asked this question in
Q&A
Replies: 1 comment
-
You should combine the Try this one: from datetime import datetime, timedelta
from airflow import DAG
from airflow.operators.dummy import DummyOperator
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'retries': 1,
'retry_delay': timedelta(minutes=5),
}
with dag as DAG(
'dagger',
default_args=default_args,
description='Run tasks daily at 3:30 PM and 4:30 PM',
schedule_interval='30 15,16 * * *',
start_date=datetime(2024, 12, 30), # If you want it to start tomorrow, set the start_date as D-1 bcoz you want the interval daily
catchup=False,
):
t1 = DummyOperator(
task_id='tasker',
)
t2 = DummyOperator(
task_id='tasker',
)
t1 >> t2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can I please get some help what would be the start date should I provide if I want to start running my job from tomorrow at 3:30 PM and second one at 4:30 PM continuing everyday
Beta Was this translation helpful? Give feedback.
All reactions