[ 
https://issues.apache.org/jira/browse/AIRFLOW-4963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888623#comment-16888623
 ] 

ASF subversion and git services commented on AIRFLOW-4963:
----------------------------------------------------------

Commit ac01938c3c066f5af6e7926579353200d059c64f in airflow's branch 
refs/heads/v1-10-stable from Bas Harenslak
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=ac01938 ]

[AIRFLOW-4963] Avoid recreating task context (#5596)


(cherry picked from commit 6d78d7f1c68a177d38531cf35b42af2a9c2fb2cb)


> Avoid recreating task context
> -----------------------------
>
>                 Key: AIRFLOW-4963
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4963
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.10.5
>            Reporter: Bas Harenslak
>            Priority: Major
>              Labels: performance
>             Fix For: 1.10.5
>
>
> The task context is created by taskinstance.get_template_context() and called 
> twice via _run_raw_task:
>  # context = self.get_template_context()
>  # 2nd time in render_template(), instead of passing it to render_template()
> This is costly (lots of variables initialized, DB session, datetime 
> calculations) and can be avoided.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to