Skip to content

Commit

Permalink
feat(google): assign polling_interval to polling_interval_seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Jan 25, 2024
1 parent b3850c8 commit a1686d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions astronomer/providers/google/cloud/operators/dataproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ def __init__(
DeprecationWarning,
stacklevel=2,
)
kwargs["polling_interval_seconds"] = polling_interval
super().__init__(deferrable=True, **kwargs)

self.polling_interval = polling_interval
if self.timeout is None:
self.timeout: float = 24 * 60 * 60

Expand Down Expand Up @@ -109,7 +108,7 @@ def __init__(
DeprecationWarning,
stacklevel=2,
)
kwargs["polling_interval_seconds"] = polling_interval
super().__init__(deferrable=True, **kwargs)
self.polling_interval = polling_interval
if self.timeout is None:
self.timeout: float = 24 * 60 * 60

0 comments on commit a1686d8

Please sign in to comment.