runtime wait
Wait for an agent runtime to reach a terminal state.
Description
Poll an agent runtime until it reaches a terminal state: ACTIVE / DELETED
(success) or ERROR / SERVICE_ACCOUNT_ERROR (failure). Use after
create, update, or delete.
Progress lines are written to stderr. On failure or timeout the command returns a non-zero exit status.
Synopsis
Options
--timeout (duration)
Maximum time to wait before giving up.
- Required: No
- Default:
10m0s(10 minutes) - Possible values: any Go duration (e.g.
5m,30s,1h).
--interval (duration)
Poll interval between get requests.
- Required: No
- Default:
5s(5 seconds) - Possible values: any Go duration (e.g.
5s,10s,1m).
Global options
All grn agentbase commands accept:
-o, --output json|table|id— output format (defaulttable)-i, --interactive— prompt for missing required parameters- The shared
grnglobal options:--profile,--region,--query,--endpoint-url,--debug
Examples
Wait for a freshly created runtime to become ACTIVE:
Wait with a custom timeout and poll interval:
Wait for deletion to complete (reaches DELETED):