Repository navigation
Conversation
The architecture page and AGENTS.md said inter-server calls retry with exponential backoff for 3 attempts. nemo_gym/server_utils.py waits a fixed 0.5 s between tries, ServerClient calls between Gym servers (_internal=True) retry until they succeed, and the 3-attempt cap (MAX_NUM_TRIES) applies only to other calls on non-connection errors. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
5 of 7 tasks
This was referenced Oct 20, 2026
This branch has not been 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 changed
Two docs described the retry behavior of Gym's HTTP calls as "exponential backoff (3 attempts)" / "3 tries, exponential backoff". Neither matches
nemo_gym/server_utils.py. This PR rewrites only those two passages:fern/versions/latest/pages/about/architecture.mdx: the Retry logic bullet under "Communication". No other line on the page changes.AGENTS.md(and soCLAUDE.md, a symlink to it): the opening paragraph of "Communication & Async Patterns".What the code actually does
From
_request_with_retriesinnemo_gym/server_utils.py:asyncio.sleep(0.5)between tries. There is no backoff.ServerClient.request, which passes_internal=True) retry until they succeed, because the head server shuts everything down if a Gym server fails. One exception: with checkpointing on, a/runwhose connection dropped is not resent.request()stop afterMAX_NUM_TRIES(3) attempts on non-connection errors. Connection errors (ServerDisconnectedError,ClientOSError) retry without a limit._max_num_triesor_max_connection_retries.Why
Reviewers of the docs stack #4711, #4712 and #4713 flagged the claim twice. The fix was kept out of #4711 as an unrelated change, so it lands here on its own. No issue was filed because the fix is a two-passage docs correction.
The frozen release snapshots (
fern/versions/v0.3.0,v0.4.0,v0.7.0) carry the same old bullet. They are left unchanged because they document past releases.Validation
pytest tests/unit_tests/test_fern_docs_links.py: 24 passed, 21 subtests passedpre-commit run --files AGENTS.md fern/versions/latest/pages/about/architecture.mdx: passedgit commit -sRollouts
N/A: docs-only change; no runtime behavior changes.
Compatibility
None. No code, config, or benchmark results change.
🤖 Generated with Claude Code