[
https://issues.apache.org/jira/browse/AIRFLOW-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848127#comment-16848127
]
ASF GitHub Bot commented on AIRFLOW-1464:
-----------------------------------------
potiuk commented on pull request #5323: [AIRFLOW-1464] Batch update
task_instance state
URL: https://github.com/apache/airflow/pull/5323
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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)