airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-989) Clear Task Regression
Date Wed, 15 Mar 2017 23:39:42 GMT


ASF subversion and git services commented on AIRFLOW-989:

Commit 15600e42c805b222d6147b60376b56c8e708dcde in incubator-airflow's branch refs/heads/v1-8-test
from [~bolke]
[;h=15600e4 ]

[AIRFLOW-989] Do not mark dag run successful if unfinished tasks

Dag runs could be marked successful if all root
tasks were successful,
even if some tasks did not run yet, ie. in case of
clearing. Now
we consider unfinished_tasks, before marking

Closes #2154 from bolkedebruin/AIRFLOW-989

(cherry picked from commit 3d6095ff5cf6eff0444d7e47a2360765f2953daf)
Signed-off-by: Bolke de Bruin <>

> Clear Task Regression
> ---------------------
>                 Key: AIRFLOW-989
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.8.0
>            Reporter: Siddharth Anand
>            Assignee: Bolke de Bruin
>            Priority: Critical
>             Fix For: 1.8.1
> There is a regression in the current 1.8 rc (e.g. rc5) related to Clear Task behavior.

> Consider the following test DAG : 
> 1. Code :
> 2. Graph :
> The test DAG has 4 dummy tasks chained together as d1->d2->d3->d4. d1 is the
first task and d4 is the last task. Prior to 1.8, if any of d1..d4 were cleared individually.
the scheduler would pick  up and rerun the cleared tasks. In 1.8. unless the last task  in
a DAG is cleared, none of the tasks in the DAG run are rerun.
> In order for a task that is not the last task in the DAG to be rerun after being cleared,
its terminal downstream task needs to be cleared. Another workaround is to use the CLI to
rerun the cleared task.
> Here are some screenshots to illustrate the regressed behavior:
> Use Case 1 : Clear d1, d2, d3, and d4 in 4 separate DAG runs. In a 5th separate DAG run,
clear the entire DAG Run.
> After Clearing :

> After the Scheduler Runs : 
> You'll notice that only the DAG runs with the last task cleared completed by actually
running cleared tasks. These are shown as the 1st and 5th DAG runs from the left.
> Use Case 2 : Clear d1 and d4 in the same DAG Run
> After Clearing (c.f. 2nd from right DAG run): 
> After the Scheduler Runs : 

This message was sent by Atlassian JIRA

View raw message