The sequence
- Request — the caller asks jhansi.io to perform work.
- Create — the runtime provisions an environment.
- Prepare — required code, files and configuration are made available.
- Execute — the sandbox runs the workload.
- Collect — output, errors and status are returned.
- Destroy — the environment is terminated and cleaned up.
Failure is part of the lifecycle
Timeouts, startup failures and cancelled requests must still lead to cleanup. A reliable runtime treats destruction as a first-class operation rather than an optional final step.TTL-based cleanup
jhansi.io automatically destroys sandboxes after a period of inactivity. The default TTL is 3600 seconds and is configurable viaPETRI_SANDBOX_TTL_SECONDS.