dstandish commented on code in PR #47187:
URL: https://github.com/apache/airflow/pull/47187#discussion_r1977944589
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -834,6 +834,8 @@ def trigger_reentry(self, context: Context, event:
dict[str, Any]) -> Any:
last_log_time = event.get("last_log_time")
if event["status"] in ("error", "failed", "timeout"):
+ if event["status"] == "error":
+ self.log.error("Trigger emitted an error event, failing
the task: %s", event["message"])
Review Comment:
you could use a walrus op to get the status and reuse that.
--
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]