Skip to content

docs: correct ServerClient retry behavior - #4754

Open
yaoyu-33 wants to merge 1 commit into
mainfrom
docs/correct-serverclient-retry-behavior
Open

yaoyu-33 wants to merge 1 commit into
mainfrom
docs/correct-serverclient-retry-behavior

Conversation

@yaoyu-33

Copy link
Copy Markdown
Contributor

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 so CLAUDE.md, a symlink to it): the opening paragraph of "Communication & Async Patterns".

What the code actually does

From _request_with_retries in nemo_gym/server_utils.py:

  • Delay: a fixed asyncio.sleep(0.5) between tries. There is no backoff.
  • What retries: a call that raises (connection error or other exception). An HTTP error status is returned to the caller and is not retried.
  • Calls between Gym servers (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 /run whose connection dropped is not resent.
  • Other calls through request() stop after MAX_NUM_TRIES (3) attempts on non-connection errors. Connection errors (ServerDisconnectedError, ClientOSError) retry without a limit.
  • Callers can cap attempts with _max_num_tries or _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 passed
  • pre-commit run --files AGENTS.md fern/versions/latest/pages/about/architecture.mdx: passed
  • DCO: commit signed off with git commit -s

Rollouts

N/A: docs-only change; no runtime behavior changes.

Compatibility

None. No code, config, or benchmark results change.

🤖 Generated with Claude Code

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]>
@yaoyu-33 yaoyu-33 added the area:docs Generic documentation without another dominant domain label Oct 19, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 19, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33 yaoyu-33 added area:core Shared APIs, servers, telemetry, health, and registries complexity:low Localized change in one scope with a small, straightforward review surface docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer and removed area:docs Generic documentation without another dominant domain labels Oct 19, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Shared APIs, servers, telemetry, health, and registries complexity:low Localized change in one scope with a small, straightforward review surface docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer sla:triage-overdue Review assignment is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant