weiwenlan opened a new issue, #30572:
URL: https://github.com/apache/airflow/issues/30572

   ### Apache Airflow version
   
   2.5.3
   
   ### What happened
   
   Hi team, 
   I just found that when sensor is in the reschedule mode, 
`exponential_backoff` is not working. The reason is that the `try_number` is 
outside the loop of reschedule and reschedule mode will call 
`_get_next_poke_interval` with try_number to get the poke_interval. As the 
try_number is not change through the loop, reschedule mode will have same 
interval through the time.
   
   I tried to move out the try_number to solve the problem
   
   ### What you think should happen instead
   
   Should have exponential backoff interval
   
   ### How to reproduce
   
   Just call the sensor with `reschedule` mode and `exponential_backoff = True`
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   2.5
   
   ### Deployment
   
   Other 3rd-party Helm chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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