portainer_service_wait
Monitor a service rollout until it converges: polls until the service is healthy and update completes, or detects pause on failure or timeout. Returns summary with converge status, reason, timed_out, and recent task errors.
Instructions
Wait for a service's rollout to converge after an update/rollback.
Polls until the service is healthy (running == desired and the
update finished), the update paused on failure, or the timeout
elapses. Returns the final service summary with converged,
reason, timed_out and the recent task errors.
Args: service_id: Service ID or name timeout_seconds: How long to wait (default 120, clamped to 5..PORTAINER_LONG_TIMEOUT) endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | ||
| endpoint_id | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |