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


##########
providers/amazon/src/airflow/providers/amazon/aws/operators/bedrock.py:
##########
@@ -1471,16 +1473,35 @@ def execute(self, context: Context) -> str:
         return guardrail_id
 
 
+def _is_guardrail_in_transition_error(exception: BaseException) -> bool:

Review Comment:
   Thanks for pointing that out. I tested it against Bedrock, 5 runs each. 
Right after CreateGuardrailVersion, UpdateGuardrail was rejected 3 of 5 times 
and a second CreateGuardrailVersion 2 of 5, with the same ValidationException, 
and an immediate retry went through. Right after UpdateGuardrail neither call 
was rejected.
   
   I'll add the retry to both operators. #76646 adds waiter_delay and 
waiter_max_attempts to them, so I'll rebase this once that merges and reuse 
those instead of adding the same parameters in two PRs



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