vandonr-amz commented on code in PR #32274:
URL: https://github.com/apache/airflow/pull/32274#discussion_r1253609094


##########
airflow/providers/amazon/aws/sensors/batch.py:
##########
@@ -113,9 +114,10 @@ def execute_complete(self, context: Context, event: 
dict[str, Any]) -> None:
 
         Relies on trigger to throw an exception, otherwise it assumes 
execution was successful.
         """
-        if "status" in event and event["status"] == "failure":

Review Comment:
   no I don't think so. The event is something we control and that we send to 
ourselves. If it doesn't contain a "status" key, it means something bad 
happened, either the event is not formatted properly, or an event was routed to 
the wrong place, and we definitely want the error to blow up.



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