[ 
https://issues.apache.org/jira/browse/AIRFLOW-2614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601335#comment-16601335
 ] 

Apache Spark commented on AIRFLOW-2614:
---------------------------------------

User 'mishikaSingh' has created a pull request for this issue:
https://github.com/apache/incubator-airflow/pull/3590

> 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: 1.9.0, 2.0.0
>            Reporter: raman
>            Assignee: Mishika Singh
>            Priority: Major
>             Fix For: 2.0.0
>
>
> 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