[ https://issues.apache.org/jira/browse/AIRFLOW-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15630490#comment-15630490 ]
Paul Yang commented on AIRFLOW-605: ----------------------------------- I think the logic that sets tasks to those states if there is no DAG run could be removed and replaced with another mechanism. I'll see if I can get to it later this week. > TI's without dagrun never set to failed or none. > ------------------------------------------------ > > Key: AIRFLOW-605 > URL: https://issues.apache.org/jira/browse/AIRFLOW-605 > Project: Apache Airflow > Issue Type: Bug > Components: scheduler > Reporter: Gerard Toonstra > Priority: Minor > > The code that sets the task instance state to FAILED or NONE if there's no > dagrun associated with them always evaluates to True. > dag_is_running = True > for dag_run in dag_runs: > if dag_run.state == State.RUNNING: > dag_is_running = True > break > This code can be found in the jobs.py file. > This probably never surfaced because usually they would have associated > dagruns, but I believe it can have an impact for manual runs and perhaps > backfills. > I found this when browsing the source code, not because it was observed when > running airflow. -- This message was sent by Atlassian JIRA (v6.3.4#6332)