Option to include subdir in trigger_dag to not make scheduler scan the whole dag folder #19547
Unanswered
GagandeepS
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a design where 10s of child dags gets created every few minutes and gets triggered from a parent dag. While triggering each of the child dag, I believe scheduler searches the whole dag bag which is making the whole process slower. We have put a while loop to run TriggerDagRunOperator/trigger_dagy, if it is successful in triggering then it exits the loop otherwise trigger it again.
I believe that to decrease the load from the scheduler, there should be a provision to supply subdir to TriggerDagRunOperator so that scheduler only searched for the dag_id inside of that folder instead of whole dagbag.
airflow/airflow/api/common/experimental/trigger_dag.py
Line 117 in 37a12e9
Beta Was this translation helpful? Give feedback.
All reactions