Skip to content

Commit

Permalink
fix: Fix Redshift bug that stops waiting on statements after 5 minutes (
Browse files Browse the repository at this point in the history
feast-dev#2363)

Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
Tsotne Tabidze authored and achals committed Mar 8, 2022
1 parent d7d9d78 commit c3a3add
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sdk/python/feast/infra/utils/aws_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
retry,
retry_if_exception_type,
stop_after_attempt,
stop_after_delay,
wait_exponential,
)

Expand Down Expand Up @@ -103,7 +102,6 @@ class RedshiftStatementNotFinishedError(Exception):
@retry(
wait=wait_exponential(multiplier=1, max=30),
retry=retry_if_exception_type(RedshiftStatementNotFinishedError),
stop=stop_after_delay(300), # 300 seconds
reraise=True,
)
def wait_for_redshift_statement(redshift_data_client, statement: dict) -> None:
Expand Down

0 comments on commit c3a3add

Please sign in to comment.