Triggering DAG with Future Date - clarification #37967
Unanswered
trlopes1974
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@trlopes1974, have you got any response/ any solution for the above question? we are also facing similar issue with MWAA airflow. we are using 2.8.1 version on mwaa instance. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
According to airflow documentation:
Triggering DAG with Future Date
If you want to use ‘external trigger’ to run future-dated data intervals, set allow_trigger_in_future = True in scheduler section in airflow.cfg. This only has effect if your DAG is defined with schedule=None. When set to False (the default value), if you manually trigger a run with future-dated data intervals, the scheduler will not execute it until its data_interval_start is in the past
I have 2 dags.
The first has one task that uses the triggerdagrunoperator to schedule the 2nd dag into 3 future datetime dag runs.
IF allow_trigger_in_future = True and I use triggerdagrunoperator with an execution_date in the future, ALL 3 dag runs execute immediately ( desppite that schedule=None in the 2nd dag )
According to the stated above if allow_trigger_in_future = True and Schedule=None, shouldn't the dag run on the pecified execution_date ???
Note: after I set allow_trigger_in_future = False the dag runs on the specified date/time
example:
DAG1:
DAG2:
Beta Was this translation helpful? Give feedback.
All reactions