ASF subversion and git services commented on AIRFLOW-647:

Commit 91cd6bf72dd9e0a1dc1a042d2390369eb71c2acc in incubator-airflow's branch 
refs/heads/master from [~btall...@gmail.com]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=91cd6bf ]

[AIRFLOW-647] Restore dag.get_active_runs

Simply added a getter back to dag that returns the
list of active dag run execution dates for the dag
from the DB.

Closes #1899 from

> Restore dag.get_active_runs(), without the DB updates
> -----------------------------------------------------
>                 Key: AIRFLOW-647
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-647
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: models
>    Affects Versions: Airflow 1.8
>            Reporter: Ben Tallman
>            Assignee: Ben Tallman
>             Fix For: Airflow 1.8
> "AIRFLOW-128 Optimize and refactor process_dag" removed 
> dag.get_active_runs(), as it both returned a list of execution dates of a 
> dags running dags, while also validated and updating the states in the db.
> This was done by splitting the getter into two methods (update_state and 
> verify_integrity), However, neither returns the list of execution dates, 
> which have valid uses (we leverage them in maintenance DAGs).
> This bug fix PR will restore the getter and just return a list of execution 
> dates, which will fix DAGs that relied on the list of dates returned.

This message was sent by Atlassian JIRA

Reply via email to