portainer_stack_wait
Wait for a stack's services to become healthy after an update, polling until convergence or timeout, then report the final status.
Instructions
Wait for a stack's rollout to converge after stack_update.
Polls portainer_stack_status until every service is healthy, a
service's update paused on failure, or the timeout elapses. Returns
the final status with converged, reason and timed_out.
Args: stack_name: Stack name (Swarm namespace / Compose project) 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 |
|---|---|---|---|
| stack_name | Yes | ||
| endpoint_id | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |