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

Tao Feng commented on AIRFLOW-2768:
-----------------------------------

Hey [~7yl4r] , have you tried `airflow backfill --rerun_failed_tasks` ? By 
doing so, airflow will auto rerun only the failed task during backfill.

> `airflow clear --upstream --only_failed` doesn't clear tasks upstream
> ---------------------------------------------------------------------
>
>                 Key: AIRFLOW-2768
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2768
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: cli
>    Affects Versions: 1.9.0
>         Environment: airflow v1.9.0 
>            Reporter: Tylar Murray
>            Priority: Major
>              Labels: cli
>
> Should `airflow clear --upstream --only_failed mydagname` clear non-failed 
> tasks upstream of a failed task?
> I believe so, yes. If not, then `airflow clear --upstream --only_failed` and 
> `airflow clear --only_failed` are equivalent.
> Upstream tasks are not being cleared. The same is true for `–downstream`.
>  
> My use-case is: I want to clear all tasks all DagRuns that contain a failed 
> task. In other words: `airflow clear mydagname`, but skip DagRuns that have 
> completed sucessfully.



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

Reply via email to