kaxil commented on code in PR #28230:
URL: https://github.com/apache/airflow/pull/28230#discussion_r1054891585


##########
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py:
##########
@@ -484,15 +498,21 @@ def extract_xcom(self, pod: k8s.V1Pod):
             return json.loads(result)
 
     def execute(self, context: Context):
-        remote_pod = None
+        """Based on the deferrable parameter runs the pod asynchronously or 
synchronously"""
+        if self.deferrable:
+            self.asynchronously(context)
+        else:
+            return self.synchronously(context)
+
+    def synchronously(self, context: Context):

Review Comment:
   same as https://github.com/apache/airflow/pull/28230/files#r1054839109
   
   `synchronously` name for a method alone doesn't make much sense



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