Lee-W commented on code in PR #30227:
URL: https://github.com/apache/airflow/pull/30227#discussion_r1150410798
##########
airflow/providers/dbt/cloud/sensors/dbt.py:
##########
@@ -49,13 +51,30 @@ def __init__(
dbt_cloud_conn_id: str = DbtCloudHook.default_conn_name,
run_id: int,
account_id: int | None = None,
+ deferrable: bool = False,
**kwargs,
) -> None:
+ if deferrable and "poke_interval" not in kwargs:
+ # TODO: Remove once deprecated
+ if "polling_interval" in kwargs:
+ kwargs["poke_interval"] = kwargs["polling_interval"]
+ warnings.warn(
+ "Argument `poll_interval` is deprecated and will be
removed "
+ "in a future release. Please use `poke_interval`
instead.",
+ DeprecationWarning,
+ stacklevel=2,
+ )
+ else:
+ kwargs["timeout"] = 60 * 60 * 24 * 7
Review Comment:
yes, we should! Thanks for reminding me. I just update it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]