You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Edgar Rodriguez (JIRA)" <ji...@apache.org> on 2017/07/26 00:58:00 UTC

[jira] [Created] (AIRFLOW-1464) Improve performance on getting dag run tis in backfill job

Edgar Rodriguez created AIRFLOW-1464:
----------------------------------------

             Summary: Improve performance on getting dag run tis in backfill job
                 Key: AIRFLOW-1464
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1464
             Project: Apache Airflow
          Issue Type: Improvement
          Components: backfill
            Reporter: Edgar Rodriguez


Improve the way task instances are retrieved, using batch query on TIs. 
The following code snippet needs to be improved:
{code}
for ti in dag_run.get_task_instances():
    # all tasks part of the backfill are scheduled to run
    if ti.state == State.NONE:
        ti.set_state(State.SCHEDULED, session=session)
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)