Skip to content

Commit ddc0637

Browse files
Merge pull request #110 from commit-0/e2b-timeout
Set E2B total sandbox timeout
2 parents 4587f05 + aac9082 commit ddc0637

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commit0/harness/execution_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def __init__(
247247

248248
# in modal, we create a sandbox for each operation. this seems super slow.
249249
# let's try having a single sandbox for multiple operations
250-
# assume the sandbox needs to be alive for 30 operations
251-
self.sb = Sandbox(timeout=timeout * 30)
250+
# assume the sandbox needs to be alive for an hour, the max duration
251+
self.sb = Sandbox(timeout=60 * 60)
252252
self.sb.commands.run("curl -LsSf https://astral.sh/uv/install.sh | sh")
253253

254254
# setup sandbox env

0 commit comments

Comments
 (0)