Skip to content

Conversation

@brandur
Copy link
Contributor

@brandur brandur commented Jan 26, 2026

Fix a bug that came in with #1126 in which we we were correctly
calculating timeout, but then not passing it down to the stuck job
function when starting the stuck detection goroutine.

There is a test that was checking this worked, but due to the nature of
the bug, it was in effect detecting a stuck job after 0s and therefore
passing by accident. I looked into ways to add additional testing here,
but elected not to add more because they'd involve the sort of test I
really hate, which has to wait arbitrarily wait to try and check that
something did not happen, introducing both slowness and intermittency.
After the fix here lands, this is the sort of thing that's not too
likely to regress, and should be noticed quickly in case it does.

Fixes #1125.

Fix a bug that came in with #1126 in which we we were correctly
calculating timeout, but then not passing it down to the stuck job
function when starting the stuck detection goroutine.

There is a test that was checking this worked, but due to the nature of
the bug, it was in effect detecting a stuck job after 0s and therefore
passing by accident. I looked into ways to add additional testing here,
but elected not to add more because they'd involve the sort of test I
really hate, which has to wait arbitrarily wait to try and check that
something did not happen, introducing both slowness and intermittency.
After the fix here lands, this is the sort of thing that's not too
likely to regress, and should be noticed quickly in case it does.

Fixes #1125.
@brandur brandur force-pushed the brandur-fix-timeout branch from 2e81442 to 584d8bc Compare January 26, 2026 15:11
@brandur brandur merged commit 0202e38 into master Jan 27, 2026
14 checks passed
@brandur brandur deleted the brandur-fix-timeout branch January 27, 2026 02:08
brandur added a commit that referenced this pull request Jan 27, 2026
Prepare a patch release including #1133.
brandur added a commit that referenced this pull request Jan 27, 2026
Prepare a patch release including #1133.

[skip ci]
@brandur brandur mentioned this pull request Jan 27, 2026
brandur added a commit that referenced this pull request Jan 27, 2026
Prepare a patch release including #1133.

[skip ci]
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.

Stuck job evaluation doesn't take into account worker-level job timeouts

3 participants