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]
Try to sleep to avoid race condition container.pause
Kilian Lieret05ad93afeb0b
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 05bb3c04..4cf8ea5e 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -507,6 +507,8 @@ class SWEEnv(gym.Env):elif self.persistent:# stopping is Podman specific, but doesn't hurt to include# https://stackoverflow.com/a/32428199/+ # Sleeping to avoid https://github.com/princeton-nlp/SWE-agent/issues/496 ??+ time.sleep(0.1)if self.container_obj.status not in {"paused", "exited", "dead", "stopping"}:try:self.container_obj.pause()