kacpermuda commented on code in PR #75132:
URL: https://github.com/apache/airflow/pull/75132#discussion_r4323855013
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -267,6 +268,27 @@ def model_post_init(self, context: Any) -> None:
if self.region_index is None:
self.region_index = self.map_index
+ @property
+ def loop(self) -> LoopContextAccessor | None:
Review Comment:
Same thing as the group_id comment, one level up: this duplicates
context["loop"]. Listeners can’t get it from the context cheaply:
get_template_context() re-validates params on every call and can raise from a
user’s template. The template context now builds its accessor from this
property, so there’s one way to build it. OK to keep?
--
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]