raman created AIRFLOW-2614:
------------------------------

             Summary: Airflow trigger_run API is very slow
                 Key: AIRFLOW-2614
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2614
             Project: Apache Airflow
          Issue Type: Bug
          Components: DagRun
    Affects Versions: Airflow 2.0, 1.9.0
            Reporter: raman


Current implementation of trigger_dag processes all Local dag files 
sequentially before creating a DAG run. Its done inside trigger_dag function in 
trigger_dag.py

"def trigger_dag(dag_id, run_id=None, conf=None, execution_date=None):
 dagbag = DagBag()

....."

Processing all the files to get the dagBag slows down the trigger_dag api and 
increases latency. We have observed that it starts taking 10(s) of seconds as 
number of Dag Files increase. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to