vincbeck commented on code in PR #59017:
URL: https://github.com/apache/airflow/pull/59017#discussion_r2586478923


##########
providers/amazon/src/airflow/providers/amazon/aws/hooks/redshift_sql.py:
##########
@@ -206,6 +207,14 @@ def get_table_primary_key(self, table: str, schema: str | 
None = "public") -> li
         pk_columns = [row[0] for row in self.get_records(sql, (schema, table))]
         return pk_columns or None
 
+    @tenacity.retry(
+        stop=tenacity.stop_after_attempt(5),
+        wait=tenacity.wait_exponential(max=20),

Review Comment:
   I did not do  the math but that's also why I put a hard stop at 20 seconds 
(`max=20`). Let me know if you think this is too much. To me, it is okay, and 
as you said, delay is better than failure



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