romsharon98 commented on code in PR #43601:
URL: https://github.com/apache/airflow/pull/43601#discussion_r1841716756


##########
providers/src/airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -594,6 +596,8 @@ def extract_xcom(self, pod: k8s.V1Pod) -> dict[Any, Any] | 
None:
 
     def execute(self, context: Context):
         """Based on the deferrable parameter runs the pod asynchronously or 
synchronously."""
+        context["task"].name = self._set_name(context["task"].name)  # type: 
ignore[attr-defined]

Review Comment:
   you don't need to use the context here.
   you can just use self.name like this
   ```suggestion
           self.name = self._set_name(self.name)
   ```



-- 
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]

Reply via email to