Skip to content

Use monotonic clocks for result timeouts - #705

Open
IlyaKhalafi wants to merge 1 commit into
taskiq-python:masterfrom
IlyaKhalafi:fix/monotonic-result-timeouts
Open

IlyaKhalafi wants to merge 1 commit into
taskiq-python:masterfrom
IlyaKhalafi:fix/monotonic-result-timeouts

Conversation

@IlyaKhalafi

Copy link
Copy Markdown

This PR fixes wait_result and gather timing out too early or too late when the system clock changes. With this, timeout checks use monotonic time, and nonpositive timeouts still wait without a deadline.

Fixes #704.

All 383 tests and the repository pre-commit checks pass. Four controlled clock regression cases fail before the fix.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Result wait timeouts follow system clock adjustments

1 participant