Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Change: Only wait 1s for docker to start (#541)

Kilian Lierete25f5d774471
diff --git a/sweagent/environment/utils.py b/sweagent/environment/utils.py
index 768dda92..c42b5788 100644
--- a/sweagent/environment/utils.py
+++ b/sweagent/environment/utils.py
@@ -26,7 +26,7 @@ from docker.models.containers import Container
from sweagent.utils.config import keys_config
LOGGER_NAME = "intercode"
-DOCKER_START_UP_DELAY = int(keys_config.get("SWE_AGENT_DOCKER_START_UP_DELAY", 5))
+DOCKER_START_UP_DELAY = float(keys_config.get("SWE_AGENT_DOCKER_START_UP_DELAY", 1))
GITHUB_ISSUE_URL_PATTERN = re.compile(r"github\.com\/(.*?)\/(.*?)\/issues\/(\d+)")
GITHUB_REPO_URL_PATTERN = re.compile(r".*[/@]?github\.com\/([^/]+)\/([^/]+)")