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>
  • Loading branch information
Tsotne Tabidze authored Mar 4, 2022
1 parent ec7385c commit 74f887f
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 74f887f

Please sign in to comment.