Hello everyone! Hope you are doing well.
We are struggling to get our Monthly DAG running. We have some others running perfectly, on a daily basis, however, the monthly one is not triggering.
Please, see the code below:
default_args = {
‘owner’: ‘airflow’,
‘retries’: 3,
‘retry_delay’: timedelta(minutes=3),
‘start_date’: airflow.utils.dates.days_ago(1),
‘email_on_failure’: False,
‘email_on_retry’: False
}
with models.DAG(
dag_id=‘monthlydag’,
tags=[‘monthly’],
default_args=default_args,
schedule_interval=“25 20 04 * *”,
catchup=False
) as dag:
start = dummy_operator.DummyOperator(
task_id=‘start’,
trigger_rule=‘all_success’
)
cloud_function = BashOperator(
task_id='cloud_function',
bash_command=XXXX,
dag=dag
)
end = dummy_operator.DummyOperator(
task_id='end',
trigger_rule='all_done'
)
start >> cloud_function >> end
We already tried setting up a start_date with datetime package, but it didn’t triggered as well. We also used timedelta and relative delta to the schedule_interval and it didn’t work either
Please, anyone can help us in this question?
Any help/orientation is kindly appreciated