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

Tao Feng resolved AIRFLOW-2558.
-------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 1.10.0)
                   1.10.3

> 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.3
>
>
> 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)

Reply via email to