Skip to content

Commit

Permalink
Increase sandbox refresh timeout for CLI spawned sandboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Oct 24, 2024
1 parent aa302ed commit 722b75e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fair-carrots-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/cli': patch
---

Increase the timeout when refreshing spawned sandbox
2 changes: 1 addition & 1 deletion packages/cli/src/commands/sandbox/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function connectSandbox({

// keep-alive loop
const intervalId = setInterval(async () => {
await sandbox.setTimeout(10_000)
await sandbox.setTimeout(30_000)
}, 5_000)

console.log(
Expand Down

0 comments on commit 722b75e

Please sign in to comment.