uranusjr commented on code in PR #54568:
URL: https://github.com/apache/airflow/pull/54568#discussion_r2344435824
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -129,6 +129,9 @@ class RuntimeTaskInstance(TaskInstance):
task: BaseOperator
bundle_instance: BaseDagBundle
+ _context: Context | None = None
Review Comment:
It feels wrong this need to be an attribute. How about just adding
`functools.cache` on `get_template_context`?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]