pankajkoti commented on code in PR #37363:
URL: https://github.com/apache/airflow/pull/37363#discussion_r1487344959


##########
airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -729,66 +735,34 @@ def trigger_reentry(self, context: Context, event: 
dict[str, Any]) -> Any:
 
             if self.do_xcom_push:
                 result = self.extract_xcom(pod=self.pod)
-            remote_pod = self.pod_manager.await_pod_completion(self.pod)
+                if event["status"] in ("error", "failed", "timeout"):
+                    raise AirflowException(event)

Review Comment:
   Can we have here:
   ```
   if "stack_trace" in event:
       message = f"{event['message']}\n{event['stack_trace']}"
   else:
       message = event["message"]
   raise AirflowException(message)
   ```
   
   to be consistent with earlier `execute_complete`



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