uranusjr commented on code in PR #30231:
URL: https://github.com/apache/airflow/pull/30231#discussion_r1144420081
##########
airflow/providers/google/cloud/sensors/bigquery.py:
##########
@@ -147,8 +147,11 @@ def __init__(
gcp_conn_id: str = "google_cloud_default",
delegate_to: str | None = None,
impersonation_chain: str | Sequence[str] | None = None,
+ deferrable: bool = False,
**kwargs,
) -> None:
+ if deferrable and "poke_interval" not in kwargs:
+ kwargs["poke_interval"] = 5
Review Comment:
Don’t need to be done in this PR but should be a good idea to define `5` as
a constant somewhere (maybe `BaseSensorOperator.DEFERRABLE_POLL_INTERVAL`) so
we don’t repeat the magic number everywhere.
--
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]