Skip to content

Commit 5a6f7e8

Browse files
authored
Merge pull request #94 from apoorvkh/default-agent-timeout
Decreased default agent timeout to 60s
2 parents cfd967a + 2f3e5af commit 5a6f7e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/torchrunx/integrations/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def add_torchrunx_argument_group(parser: ArgumentParser) -> None:
5555
group.add_argument(
5656
"--agent-timeout",
5757
type=int,
58-
default=180,
59-
help="Agent communication timeout in seconds. Default: 180.",
58+
default=60,
59+
help="Agent communication timeout in seconds. Default: 60.",
6060
)
6161

6262
group.add_argument(

src/torchrunx/launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Launcher:
6363
Use GLOO for CPU backend. ``None`` for no process group."""
6464
worker_timeout: int = 600
6565
"""Worker process group timeout (seconds)."""
66-
agent_timeout: int = 180
66+
agent_timeout: int = 60
6767
"""Agent communication timeout (seconds)."""
6868
copy_env_vars: tuple[str, ...] = DEFAULT_ENV_VARS_FOR_COPY
6969
"""Environment variables to copy from the launcher process to workers.

0 commit comments

Comments
 (0)