jroachgolf84 commented on code in PR #68997:
URL: https://github.com/apache/airflow/pull/68997#discussion_r3630923229


##########
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:
   That was the thoughts. `poke_interval` is always going to be truthy (has a 
default value), but the assumption is that if `poll_interval` is explicitly 
passed, the assumption is that it would take priority.
   
   Otherwise, we'd have to check if `poke_interval == default poke_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]

Reply via email to