ps - List activity¶
Note
contree ps is a top-level shortcut for operation list (contree op ls).
Both share one argparse setup and one handler — ps exists for the
Docker-like UX. New flags or columns added to operation list apply
automatically here. See the operation - Manage operations page for the full
description of dynamic columns, error handling, and multi-UUID
workflows in the operation namespace.
List operations and their statuses. By default shows only active operations (PENDING, ASSIGNED, EXECUTING).
Examples¶
# Show active operations
contree ps
# Show all operations (including completed)
contree ps -a
# UUIDs only (for scripting)
contree ps -q
# Filter by status (note: --status, not -S; -S is the global session flag)
contree ps --status FAILED
# Filter by kind
contree ps -K instance
# Operations from the last hour
contree ps -a --since=1h
# Pipe to other commands
contree ps -q | xargs -I {} contree show {}
Help output¶
Operation statuses¶
Status |
Meaning |
|---|---|
|
Queued, waiting for resources |
|
Assigned to a worker |
|
Running |
|
Completed successfully |
|
Completed with an error |
|
Cancelled by the user |
Without -a, only PENDING, ASSIGNED, and EXECUTING are shown.
Dynamic output columns¶
ps renders every scalar top-level field the API returns (not a fixed
subset), so new server fields appear automatically. error is pinned
to the last column. See operation - Manage operations for the full description.
See also¶
operation - Manage operations — the canonical command (
contree psis its shortcut)show - Inspect an operation — inspect a specific operation
kill - Cancel operations — cancel a running operation
Scripting & Automation — monitoring and scripting patterns