ramitkataria commented on code in PR #77225:
URL: https://github.com/apache/airflow/pull/77225#discussion_r4622224381


##########
providers/amazon/src/airflow/providers/amazon/aws/operators/bedrock.py:
##########
@@ -1505,7 +1515,27 @@ def execute(self, context: Context) -> None:
                 "guardrailVersion": self.guardrail_version,
             }
         )
-        self.hook.conn.delete_guardrail(**kwargs)
+        attempt = 1

Review Comment:
   Good idea - I've switched to tenacity, keeping the operator's 2s x 60 bound 
since the rejection lasted about 100 ms in testing. I couldn't get Bedrock to 
return either code but I added `ConflictException` as a hedge and left out 
`ResourceInUseException`, which the docs describe as a dependency a retry won't 
clear. Let me know what you think



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