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

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

Commit 117f7b64d0857a3264bf6c06f747cec6724b6da8 in airflow's branch 
refs/heads/v1-10-test from Ash Berlin-Taylor
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=117f7b6 ]

[AIRFLOW-4759] Don't error when marking sucessful run as failed (#5435)

The previous PR (#5403) that optimized the DB queries introduced an edge
case which would cause this to fail if no tasks were passed in.

(cherry picked from commit 056ce598f24bfc3cfb4dbd38a49153e99595c3b2)


> 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