You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Bolke de Bruin (JIRA)" <ji...@apache.org> on 2018/01/15 14:42:00 UTC

[jira] [Resolved] (AIRFLOW-1019) active_dagruns shouldn't include paused DAGs

     [ https://issues.apache.org/jira/browse/AIRFLOW-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bolke de Bruin resolved AIRFLOW-1019.
-------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 1.10.0)
                   1.9.0

> active_dagruns shouldn't include paused DAGs
> --------------------------------------------
>
>                 Key: AIRFLOW-1019
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1019
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: scheduler
>    Affects Versions: 1.8.0
>            Reporter: Dan Davydov
>            Priority: Critical
>             Fix For: 1.9.0
>
>
> Since 1.8.0 Airflow resets orphaned tasks (tasks that are in the DB but not in the executor's memory). The problem is that Airflow counts dagruns in paused DAGs as running as long as the dagruns state is running. Instead we should join against non-paused DAGs everywhere we calculate active dagruns (e.g. in _process_task_instances in the Scheduler class in jobs.py). If there are enough paused DAGs it brings the scheduler to a halt especially on scheduler restarts.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)