Alwaysgaurav1 opened a new pull request, #69560:
URL: https://github.com/apache/airflow/pull/69560

   ### Description
   
   When using `ExternalTaskSensor` in deferrable mode (`deferrable=True`), the 
`poke_interval` parameter was being ignored. The trigger would default to 
polling every 2 seconds, which resulted in excessive logging and API server 
polling load.
   
   This PR addresses the issue by setting the default value of `poll_interval` 
to `None`. 
   - If `poll_interval` is not explicitly provided but `poke_interval` is set 
by the user, the trigger will use the user-specified `poke_interval` value.
   - Otherwise, it falls back to the historical default value of `2.0` seconds.
   
   ### Verification
   
   Added a new unit test 
`test_external_task_sensor_deferrable_respects_poke_interval` in 
`test_external_task_sensor.py` to verify that `poke_interval` is correctly 
resolved and set on the `WorkflowTrigger`.
   
   Closes: #68990


-- 
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