You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Chao-Han Tsai (JIRA)" <ji...@apache.org> on 2018/05/21 20:47:00 UTC
[jira] [Assigned] (AIRFLOW-1464) Improve performance on getting dag
run tis in backfill job
[ https://issues.apache.org/jira/browse/AIRFLOW-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chao-Han Tsai reassigned AIRFLOW-1464:
--------------------------------------
Assignee: Chao-Han Tsai
> 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
> Assignee: Chao-Han Tsai
> Priority: Major
>
> 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
(v7.6.3#76005)