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

ASF subversion and git services commented on AIRFLOW-4759:
----------------------------------------------------------

Commit 050131d0732d6588f484e9eb741bca32c04fbb0d in airflow's branch 
refs/heads/v1-10-stable from Joshua Carp
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=050131d ]

[AIRFLOW-4759] Batch queries in set_state API. (#5403)

Setting a `dagrun` to success or failure calls set_state for each task in
the dag, running multiple database queries for each one. We can reduce
the number of queries, and improve performance for the associated
endpoints, by setting the states of all relevant tasks in the same query.

(cherry picked from commit dadca8c1eb89761a860c88786022383e50081535)


> Improve performance of /success endpoint
> ----------------------------------------
>
>                 Key: AIRFLOW-4759
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4759
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: webserver
>    Affects Versions: 1.10.3
>            Reporter: Josh Carp
>            Assignee: Josh Carp
>            Priority: Minor
>             Fix For: 1.10.4
>
>
> Setting a dagrun to success or failure calls `set_state` for each task in the 
> dag, running multiple database queries for each one. We can reduce the number 
> of queries, and improve performance for the associated endpoints, by setting 
> the states of all relevant tasks in the same query.



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

Reply via email to