[ https://issues.apache.org/jira/browse/AIRFLOW-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16869573#comment-16869573 ]
ASF subversion and git services commented on AIRFLOW-4759: ---------------------------------------------------------- Commit 056ce598f24bfc3cfb4dbd38a49153e99595c3b2 in airflow's branch refs/heads/master from Ash Berlin-Taylor [ https://gitbox.apache.org/repos/asf?p=airflow.git;h=056ce59 ] [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. > 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)