You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/09/02 18:02:03 UTC

[jira] [Commented] (AIRFLOW-2558) Clear TASK/DAG is clearing all executions

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

Apache Spark commented on AIRFLOW-2558:
---------------------------------------

User 'feng-tao' has created a pull request for this issue:
https://github.com/apache/incubator-airflow/pull/3465

> Clear TASK/DAG is clearing all executions
> -----------------------------------------
>
>                 Key: AIRFLOW-2558
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2558
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Marcos Bernardelli
>            Assignee: Tao Feng
>            Priority: Major
>             Fix For: 1.10.0
>
>
> When I try to clear a DAG/TASK specific execution, the Airflow try to execute all the past executions:
> [Animeted GIF|https://gist.githubusercontent.com/bern4rdelli/34c1e57acd53c8c67417604202f3e0e6/raw/4bcb3d3c23f2a3bb7f7bfb3e977d935e5bb9f0ee/clear.gif] (I failed miserable trying to attache the animated GIF :()
>  
> This behavior was changed here: [https://github.com/apache/incubator-airflow/pull/3444]
> The old version looks like this:
> {code:python}
> drs = session.query(DagModel).filter_by(dag_id=self.dag_id).all()
> {code}
> Then it's changed to:
> {code:python}
> drs = session.query(DagRun).filter_by(dag_id=self.dag_id).all()
> {code}
> This new query (using DagRun) get all the past executions, even when the "Past" button is not checked.



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