Pause
POST /v1/agents/runtime/{runtime_id}/pause
Resume
POST /v1/agents/runtime/{runtime_id}/resume
What is preserved
What changes
- In-flight network connections are lost. A TCP connection that was open across the pause will not survive; the peer sees it drop. Have long lived clients reconnect.
- The guest clock is corrected on resume. The guest wakes believing it is still the
instant it was paused, so the platform steps
CLOCK_REALTIMEforward before the runtime serves traffic. Wall clock reads are correct after resume, but a monotonic timer started before the pause does not count the paused interval. - Timers and scheduled work fire late. A
sleepor cron job that should have fired during the pause fires shortly after resume instead.
Resource accounting
Because resuming re-acquires CPU and RAM quota, a resume can be rejected if your account has
since allocated that capacity elsewhere. It is also rejected if the wallet balance is
insufficient. Handle both when resuming after a long idle period.