pankajastro commented on code in PR #30244:
URL: https://github.com/apache/airflow/pull/30244#discussion_r1194691544


##########
airflow/providers/amazon/aws/operators/redshift_cluster.py:
##########
@@ -624,8 +629,12 @@ def __init__(
         self._attempts = 10
         self._attempt_interval = 15
         self.redshift_hook = RedshiftHook(aws_conn_id=aws_conn_id)
+        self.aws_conn_id = aws_conn_id
+        self.deferrable = deferrable
+        self.max_attempts = max_attempts

Review Comment:
   self._attempts: we added this because sometimes redshift goes into an 
unexpected state which does not allow us to perform the other operation cluster 
so this param allows us to wait for the right cluster state.
   self.max_attempts: once delete is initiated how many times we should poll to 
check the status before timeout.



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