State values
The server may introduce new
state values over time. The SDK’s
rig.wait() checks the rig’s lifecycle status and its setup status, and
only treats failed as a failure, so unknown values won’t break your code.List rigs
Stop a running rig
wait({ status: "stopped" }) polls every 3 seconds until the rig is
stopped (or suspended), for up to 15 minutes. It throws an
AmikaWaitError if the rig fails or the deadline passes.
Start a stopped rig
wait() polls every 3 seconds until the rig is running and its setup
succeeded, for up to 15 minutes.
Over HTTP, start and stop return 202 with {"ok": true} and finish in the
background. Poll GET /api/v0beta1/rigs/{id} until status and
setup_status reach the values you need. Every rig path takes the rig’s ID or
its name. See the HTTP API overview.