Repository navigation
Let grader images set a default sandbox timeout - #64
Merged
Merged
Conversation
ConfigObject.sandbox_timeout now defaults to None, meaning 'use the image/global default'. The plugin resolves an unset timeout from the PL_GRADER_SANDBOX_TIMEOUT environment variable (falling back to 1.0s), so an image can bake in a more sensible default while questions keep full control by setting an explicit value. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Summary
Lets a grader image bake in a more sensible default sandbox timeout that questions can still override — the mechanism the
:torchimage needs.ConfigObject.sandbox_timeoutnow defaults toNone("use the image/global default") instead of1.0.PL_GRADER_SANDBOX_TIMEOUTenvironment variable, falling back to1.0s. An explicitsandbox_timeoutin a question'sConfigObject(or the module-level variable / marker) always wins.Precedence: explicit per-question value → image env default → 1.0s.
Testing
_default_sandbox_timeout(): unset env, valid env, and invalid/non-positive env (ignored with a warning).Nonesentinel.Stacked on #63.
🤖 Generated with Claude Code