Please note:
- It takes about 4 seconds per 1 GB RAM to pause the sandbox.
- It takes about 1 second to resume the sandbox.
- Sandbox can be paused up to 30 days.
- After 30 days, the data will be deleted and you will not be able to resume the sandbox. Trying to resume sandbox that was deleted or does not exist will result in the
NotFoundError
error in JavaScript SDK andNotFoundException
exception in Python SDK.
Pausing sandbox
When you pause a sandbox, both the sandbox’s filesystem and memory state will be saved. This includes all the files in the sandbox’s filesystem and all the running processes, loaded variables, data, etc.Resuming sandbox
When you resume a sandbox, it will be in the same state it was in when you paused it. This means that all the files in the sandbox’s filesystem will be restored and all the running processes, loaded variables, data, etc. will be restored.Listing paused sandboxes
You can list all paused sandboxes by calling theSandbox.list
method and supplying the state
query parameter.
More information about using the method can be found in List Sandboxes.
Removing paused sandboxes
You can remove paused sandboxes by calling thekill
method on the sandbox instance.
Sandbox’s timeout
When you resume a sandbox, the sandbox’s timeout is reset to the default timeout of a sandbox - 5 minutes. You can pass a custom timeout to theSandbox.connect()
method like this: