uranusjr commented on code in PR #32351:
URL: https://github.com/apache/airflow/pull/32351#discussion_r1254059812


##########
airflow/models/taskmixin.py:
##########
@@ -140,6 +142,27 @@ def set_setup_teardown_ctx_dependencies(self, other: 
DependencyMixin | Sequence[
             return
         SetupTeardownContext.update_context_map(other)
 
+    def set_taskgroup_ctx_dependencies(self, other: DependencyMixin | 
Sequence[DependencyMixin]):
+        from airflow.utils.task_group import TaskGroupContext
+
+        if not TaskGroupContext.active:
+            return
+        from airflow.models.xcom_arg import PlainXComArg
+
+        op1 = self
+        if isinstance(self, PlainXComArg):
+            op1 = self.operator
+        TaskGroupContext.add_task(op1)
+        if isinstance(other, Sequence):
+            for op in other:

Review Comment:
   `iter_xcom_references` is a static method that takes anything, not an 
instance method acting on XComArg.
   
   
https://github.com/apache/airflow/blob/21e8f878a3c91250d0d198c6c3675b4b350fcb61/airflow/models/xcom_arg.py#L99-L104



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to