Skip to content

Commit

Permalink
feat(amazon): change how poll_interval is loaded in redshift cluster …
Browse files Browse the repository at this point in the history
…sensor
  • Loading branch information
Lee-W committed Jan 25, 2024
1 parent d25e224 commit 079ffae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions astronomer/providers/amazon/aws/sensors/redshift_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ class RedshiftClusterSensorAsync(RedshiftClusterSensor):

def __init__(
self,
*,
poll_interval: float = 5,
**kwargs: Any,
):
# TODO: Remove once deprecated
if poll_interval:
kwargs["poke_interval"] = poll_interval
if kwargs.get("poll_interval"):
kwargs["poke_interval"] = kwargs["poll_interval"]
warnings.warn(
"Argument `poll_interval` is deprecated and will be removed "
"in a future release. Please use `poke_interval` instead.",
Expand Down

0 comments on commit 079ffae

Please sign in to comment.