ksharlandjiev commented on code in PR #57753:
URL: https://github.com/apache/airflow/pull/57753#discussion_r2599040923


##########
providers/amazon/src/airflow/providers/amazon/aws/triggers/ssm.py:
##########
@@ -89,14 +94,47 @@ async def run(self) -> AsyncIterator[TriggerEvent]:
 
             for instance_id in instance_ids:
                 self.waiter_args["InstanceId"] = instance_id
-                await async_wait(
-                    waiter,
-                    self.waiter_delay,
-                    self.attempts,
-                    self.waiter_args,
-                    self.failure_message,
-                    self.status_message,
-                    self.status_queries,
-                )
+                try:
+                    await async_wait(
+                        waiter,
+                        self.waiter_delay,
+                        self.attempts,
+                        self.waiter_args,
+                        self.failure_message,
+                        self.status_message,
+                        self.status_queries,
+                    )
+                except Exception:

Review Comment:
   done. I've removed the code duplication across operator, sensor, and trigger



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