GagandeepS opened a new issue #19548:
URL: https://github.com/apache/airflow/issues/19548


   ### Description
   
   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.
   
   ### Use case/motivation
   
   We have a parent dag trigger multiple child dags and we want to decrease the 
time to let scheduler discover the child dag faster.
   
   ### Related issues
   
   Discussion: https://github.com/apache/airflow/discussions/19547
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to