You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Daniel Imberman (Jira)" <ji...@apache.org> on 2020/03/29 15:33:00 UTC
[jira] [Closed] (AIRFLOW-605) TI's without dagrun never set to
failed or none.
[ https://issues.apache.org/jira/browse/AIRFLOW-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Imberman closed AIRFLOW-605.
-----------------------------------
Resolution: Auto Closed
> 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
(v8.3.4#803005)