You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/07/17 11:58:00 UTC
[jira] [Resolved] (AIRFLOW-4963) Avoid recreating task context
[ https://issues.apache.org/jira/browse/AIRFLOW-4963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor resolved AIRFLOW-4963.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.10.5
> 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)