phanikumv commented on code in PR #68997:
URL: https://github.com/apache/airflow/pull/68997#discussion_r3690365789
##########
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,
Review Comment:
The base sensor's poke_interval has always accepted timedelta | float —
BaseSensorOperator
runs it through _coerce_poke_interval(), which converts a timedelta to
seconds and rejects
negatives. Since poll_interval is now just an alias forwarded into
poke_interval, the
annotation reflects what the parameter actually accepts.
--
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]