Skip to main content
Pause a runtime when a session is idle. Resume brings back the same runtime: processes, open files, and REPL values are still there. While it is paused it uses no CPU or memory quota, and it keeps its disk.

Pause a runtime

  • Processes stay where they were, including REPL variables, imported modules, and data loaded in memory.
  • Files on disk stay as they were.
  • The runtime keeps its address and hostname.
  • Shells and their scrollback stay.
  • Pausing a runtime that is already paused does nothing.
  • CPU and memory quota are released. Disk stays allocated.
  • A runtime that is using more memory takes longer to pause.

Resume a runtime

  • Open network connections drop. Have clients reconnect.
  • The clock moves forward to the current time. A timer started before the pause does not count the paused interval.
  • A sleep or scheduled job that was due during the pause runs shortly after resume.
  • Resume can fail if that CPU and memory quota is already in use, or if the wallet balance is too low.
Pause continues the same runtime. To save a checkpoint and start new runtimes from it, use snapshots. To discard a runtime and release its disk, terminate it.

Endpoint

POST /v1/agents/runtime/{runtime_id}/pause POST /v1/agents/runtime/{runtime_id}/resume