Sandbox Lifecycle
Understand the states a sandbox transitions through from creation to deletion.
Sandbox States
Sandboxes transition through three states:
1
Creating
The sandbox is being provisioned from a snapshot. This typically takes under 200ms and happens automatically when you create a sandbox.
2
Running
The sandbox is active and ready to execute commands. You can run Python code, execute shell commands, upload/download files, and ping the sandbox.
3
Deleted
The sandbox has been destroyed and all resources have been freed. The sandbox ID can no longer be used for any operations.
Sandboxes automatically transition from "creating" to "running" state. The "deleted" state is reached when you explicitly delete a sandbox or when it expires after 24 hours.