[
https://issues.apache.org/jira/browse/AIRFLOW-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848131#comment-16848131
]
ASF subversion and git services commented on AIRFLOW-1464:
----------------------------------------------------------
Commit 369a12515bc3047b2960bb6164133637ba3e81eb in airflow's branch
refs/heads/v1-10-test from Chao-Han Tsai
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=369a125 ]
[AIRFLOW-1464] Batch update task_instance state (#5323)
(cherry picked from commit a7370594adbabc4a561efa446c6b58a6f87e9f2e)
> 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)