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 3c9313c commit ae03f35
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"]

Check warning on line 20 in astronomer/providers/amazon/aws/sensors/redshift_cluster.py

View check run for this annotation

Codecov / codecov/patch

astronomer/providers/amazon/aws/sensors/redshift_cluster.py#L20

Added line #L20 was not covered by tests
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 ae03f35

Please sign in to comment.