You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Result wait timeouts follow system clock adjustments #704
Source at f08a54ab3a8e4e16045c84379cf26eb4fa83d4b2.
Python version
3.12.13
What operating system are you using?
Linux
What happened?
AsyncTaskiqTask.wait_result and taskiq.gather measure elapsed timeout time with time.time(). A forward system clock adjustment can end the wait before its timeout has elapsed. A backward adjustment can delay the timeout.
I reproduced both directions with controlled clocks and a fake result backend. Nonpositive timeouts are unaffected.
Relevant log output
A forward jump from 100 to 10000 raises TaskiqResultTimeoutError immediately with a one-second timeout, although the next poll has the result available.
Broker initialization code
No broker or running worker is needed to reproduce the result-wait logic.
Activity