[
https://issues.apache.org/jira/browse/AIRFLOW-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bolke de Bruin resolved AIRFLOW-1062.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.8.1
Issue resolved by pull request #2210
[https://github.com/apache/incubator-airflow/pull/2210]
> DagRun#find returns wrong result if external_trigger=False is specified
> -----------------------------------------------------------------------
>
> Key: AIRFLOW-1062
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1062
> Project: Apache Airflow
> Issue Type: Bug
> Components: models
> Reporter: Kengo Seki
> Assignee: Kengo Seki
> Fix For: 1.8.1
>
>
> Given the following record,
> {code}
> sqlite> select id, external_trigger from dag_run;
> 1|1
> sqlite>
> {code}
> the following code should return no result,
> {code}
> In [1]: from airflow import models
> In [2]: models.DagRun.find(external_trigger=False)
> {code}
> ... but an externally-triggered record is returned erroneously.
> {code}
> Out[2]: [<DagRun example_bash_operator @ 2017-04-03 01:56:15:
> manual__2017-04-03T01:56:15, externally triggered: True>]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)