The SDK examples below use an existing Sailbox named
sb.
Sleep
Sleep an idle service that should wake on its next request:Pause
Pause when you want to preserve state without waking on incoming requests:Resume
Resume a paused or sleeping Sailbox. This operation is idempotent.wake_at to schedule a wake. See
scheduled wakes for examples and automatic wake behavior.
Limit the lifetime
Set a wall-clock deadline when creating a Sailbox. It includes time spent sleeping or paused and ends in termination, not sleep.Checkpoints with volumes
Checkpoints save the Sailbox’s local disk and memory, not volume contents. Copies reattach the same live volumes, so volume changes remain shared. See checkpoints.Upgrade
Reboot
Set limits
Terminate
get and list for at least a day after
its last change. After that, Sail may remove its record, and get for its id
returns a not-found error. Your usage and billing history are kept.