[ https://issues.apache.org/jira/browse/AIRFLOW-2768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549396#comment-16549396 ]
Tylar Murray commented on AIRFLOW-2768: --------------------------------------- It looks like `–rerun_failed_tasks` was added in `1.10` so I do not have the option in `1.9`. From the description it doesn't **sound** like what I want, but maybe it is? I can "auto rerun only the failed task" with `airflow clear --only_failed`. I want to rerun all tasks (even non-failed) within a failed DagRun. > `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)