Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix max duration time

Jakub Novak30bb211ea4c6
diff --git a/packages/python-sdk/e2b/sandbox/sandbox_connection.py b/packages/python-sdk/e2b/sandbox/sandbox_connection.py
index 223fc0b7f..9e77a063d 100644
--- a/packages/python-sdk/e2b/sandbox/sandbox_connection.py
+++ b/packages/python-sdk/e2b/sandbox/sandbox_connection.py
@@ -155,7 +155,7 @@ class SandboxConnection:
return hostname
def keep_alive(self, duration: int) -> None:
- if not 0 <= duration < 3600:
+ if not 0 <= duration <= 3600:
raise ValueError("Duration must be between 0 and 3600 seconds")
with E2BApiClient(api_key=self._api_key) as api_client: