Repository navigation
fix(environment-server): log a timed-out cleanup callback by name and pin the per-callback budget - #4603
Merged
Conversation
ananthsub
previously approved these changes
Oct 14, 2026
Contributor
|
/ok to test cac3cbd |
Contributor
Author
|
/ok to test cac3cbd |
@adil-a, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
Contributor
… pin the per-callback budget main (#3902) already bounds each cleanup callback on its own. This keeps the two pieces that were not there: a log line naming the callback that timed out, and a test that pins the per-callback budget (a slow close no longer eats the time a hung one left, and the sandbox stop at the bottom of the stack still runs). Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Adil Asif <[email protected]>
adil-a
force-pushed
the
adasif/cleanup-context-per-callback-budget
branch
from
October 14, 2026 19:47
cac3cbd to
8d3b220
Compare
Contributor
Author
|
/ok to test 8d3b220 |
ananthsub
approved these changes
Oct 14, 2026
ananthsub
enabled auto-merge
October 14, 2026 19:59
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38629383523 |
This branch was previously deployed
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.
What
main already bounds each cleanup callback on its own since #3902 (
CleanupContext.acloseruns every callback under its owncleanup_timeout_seconds). This PR keeps the two pieces that were not part of that change:TimeoutErrorbranch that logs the name of the callback that timed out (the generic branch logged a traceback without saying which owner hung);test_each_cleanup_has_its_own_budget, which pins that a slow close no longer eats the time a hung one left and that the sandbox stop at the bottom of the stack still runs, with a bound on total time.Rebased onto main after #3902; the earlier version of this PR carried the per-callback loop itself.
Test
🤖 Generated with Claude Code