phanikumv commented on code in PR #68997:
URL: https://github.com/apache/airflow/pull/68997#discussion_r3637335427
##########
providers/standard/src/airflow/providers/standard/sensors/external_task.py:
##########
@@ -191,10 +193,19 @@ def __init__(
execution_delta: datetime.timedelta | None = None,
execution_date_fn: Callable | None = None,
check_existence: bool = False,
- poll_interval: float = 2.0,
+ poll_interval: datetime.timedelta | float | None = None,
deferrable: bool = conf.getboolean("operators", "default_deferrable",
fallback=False),
**kwargs,
):
+ if poll_interval is not None:
+ warnings.warn(
+ "Parameter `poll_interval` is deprecated and will be removed
in a future release. "
+ "Use `poke_interval` instead.",
+ AirflowProviderDeprecationWarning,
+ stacklevel=2,
+ )
+ kwargs["poke_interval"] = poll_interval
Review Comment:
```suggestion
kwargs.setdefault("poke_interval", poll_interval)
```
--
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]