sjyangkevin commented on code in PR #54568:
URL: https://github.com/apache/airflow/pull/54568#discussion_r2344480279
##########
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:
Hi @uranusjr , thanks for the feedback. I attempted to use `functools.cache`
but got the following error since `RuntimeTaskInstance` is an unhashable type.
I think it is because the `self` reference to the instances of the class.
<img width="902" height="252" alt="image"
src="https://github.com/user-attachments/assets/46717857-39f3-49cd-927f-f45e68893348"
/>
https://github.com/apache/airflow/issues/52574#issuecomment-3149060840
--
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]