You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove persistence beta labels and update API methods to GA
Persistence is no longer in beta. Remove all beta notes, rename
betaPause/beta_pause to pause, betaCreate/beta_create to Sandbox.create,
and rename "Limitations while in beta" to "Limitations".
**Note: Auto-pause is currently in beta and available through `Sandbox.betaCreate()`/`Sandbox.beta_create()` method.**
228
+
### Auto-pause
235
229
236
230
Sandboxes automatically pause when they've been idle, preserving their full state. You can resume at any time from exactly where you left off. The default inactivity period is 10 minutes — configure it with the `timeoutMs`/`timeout` parameter.
237
231
@@ -240,16 +234,16 @@ Sandboxes automatically pause when they've been idle, preserving their full stat
240
234
import { Sandbox } from'@e2b/code-interpreter'
241
235
242
236
// Create sandbox with auto-pause enabled
243
-
constsandbox=awaitSandbox.betaCreate({
237
+
constsandbox=awaitSandbox.create({
244
238
autoPause:true,
245
239
timeoutMs:10*60*1000// Optional: change the default timeout (10 minutes)
246
240
})
247
241
```
248
242
```python Python
249
243
from e2b_code_interpreter import Sandbox
250
244
251
-
# Create sandbox with auto-pause enabled (Beta)
252
-
sandbox = Sandbox.beta_create(
245
+
# Create sandbox with auto-pause enabled
246
+
sandbox = Sandbox.create(
253
247
auto_pause=True, # Auto-pause after the sandbox times out
254
248
timeout=10*60, # Optional: change the default timeout (10 minutes)
255
249
)
@@ -264,16 +258,16 @@ If you `.kill()` the sandbox, it will be permanently deleted and you won't be ab
264
258
```js JavaScript & TypeScript
265
259
import { Sandbox } from'@e2b/code-interpreter'
266
260
267
-
// Create sandbox with auto-pause enabled (Beta)
268
-
constsandbox=awaitSandbox.betaCreate({
261
+
// Create sandbox with auto-pause enabled
262
+
constsandbox=awaitSandbox.create({
269
263
autoPause:true// Auto-pause after the sandbox times out
270
264
})
271
265
```
272
266
```python Python
273
267
from e2b_code_interpreter import Sandbox
274
268
275
-
# Create sandbox with auto-pause enabled (Beta)
276
-
sandbox = Sandbox.beta_create(
269
+
# Create sandbox with auto-pause enabled
270
+
sandbox = Sandbox.create(
277
271
auto_pause=True# Auto-pause after the sandbox times out
278
272
)
279
273
```
@@ -284,7 +278,7 @@ If you have a service (for example a server) running inside your sandbox and you
284
278
If you resume the sandbox, the service will be accessible again but you need to connect clients again.
285
279
286
280
287
-
## Limitations while in beta
281
+
## Limitations
288
282
289
283
### Pause and resume performance
290
284
- Pausing a sandbox takes approximately **4 seconds per 1 GiB of RAM**
0 commit comments