service_ps
List swarm service tasks to see replica placement and failure reasons, including status, desired state, and node details.
Instructions
List a swarm service's tasks (per-replica scheduling units), like docker service ps.
Shows where replicas run and why they fail: each task carries Status
(State/Message/ContainerStatus), DesiredState, NodeID, and Slot. Prefer this over
container_list for services (tasks may run on other nodes), stack_ps for a whole stack,
and the service-tasks://{id_or_name} resource for a computed rollout summary. Requires a
swarm manager.
args: id_or_name - The service id or name filters - Filter dict; keys: id, name, node, label, desired-state (running|shutdown|accepted) returns: list - Task dicts (ID, Slot, NodeID, Status, DesiredState, Spec)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | ||
| id_or_name | Yes |