airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-777) dag_is_running is initlialized to True instead of False
Date Sun, 22 Jan 2017 16:36:27 GMT

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

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

Commit 2d2d6270ad6bf6052c3efe90100740d3470c0cd1 in incubator-airflow's branch refs/heads/master
from [~gsakkis]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=2d2d627 ]

[AIRFLOW-777] Fix expression to check if a DagRun is in running state


> dag_is_running is initlialized to True instead of False
> -------------------------------------------------------
>
>                 Key: AIRFLOW-777
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-777
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: scheduler
>            Reporter: George Sakkis
>
> At https://github.com/apache/incubator-airflow/blob/master/airflow/jobs.py#L922:
> {noformat}
>             dag_is_running = True
>             for dag_run in dag_runs:
>                 if dag_run.state == State.RUNNING:
>                     dag_is_running = True
>                     break
> {noformat}
> So {{dag_is_running}} is always True



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message