Repository navigation
Make aborting jobs faster when the worker disappears - #9607
Merged
Merged
Conversation
This is covering the case where a build is running and the worker it's running on disappears. In this case the web node would eventually error after ~5mins due to the GardenRequest timeout. If a user tries to abort a build in such a state before the GardenRequest timeout, nothing will happen as we would get stuck waiting for GardenContainer.Stop() to hit its own 5min timeout. We wrap these calls in a shorter timeout of 10s. In this scenario we know the user has called abort, so a shorter timeout makes sense to override GardenRequest's longer timeout of 5mins. Signed-off-by: Taylor Silva <[email protected]>
Member
Author
|
one testflight test failing but only with the guardian runtime: On containerd I get this output from that fly command: |
Member
Author
|
Weird, I can't locally reproduce this. I get the "timeout exceeded" string with both runtimes... |
Member
Author
|
Yup just some weirdness in CI. Couldn't reproduce it locally and starting a fresh build instead of a re-run worked. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed by this PR
This is covering the case where a build is running and the worker it's running on disappears. In this case the web node would eventually error after ~5mins due to the GardenRequest timeout. If a user tries to abort a build in such a state before the GardenRequest timeout, nothing will happen as we would get stuck waiting for GardenContainer.Stop() to hit its own 5min timeout.
We wrap these calls in a shorter timeout of 10s. In this scenario we know the user has called abort, so a shorter timeout makes sense to override GardenRequest's longer timeout of 5mins.
There is an integration tests that I've added which reproduces the abort state I observed on
master.