We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d8df7 commit d7477d0Copy full SHA for d7477d0
src/minisweagent/environments/docker.py
@@ -29,6 +29,8 @@ class DockerEnvironmentConfig:
29
"""
30
container_timeout: str = "2h"
31
"""Max duration to keep container running. Uses the same format as the sleep command."""
32
+ pull_timeout: int = 120
33
+ """Timeout in seconds for pulling images."""
34
35
36
class DockerEnvironment:
@@ -65,7 +67,7 @@ def _start_container(self):
65
67
cmd,
66
68
capture_output=True,
69
text=True,
- timeout=120, # docker pull might take a while
70
+ timeout=self.config.pull_timeout, # docker pull might take a while
71
check=True,
72
)
73
self.logger.info(f"Started container {container_name} with ID {result.stdout.strip()}")
0 commit comments