list_active_tasks
Lists in-flight and recently completed vCenter tasks to explain why a cluster is busy, showing state, progress, user, errors, and running/queued items first.
Instructions
[READ] In-flight (and optionally just-completed) vCenter tasks.
Answers "why is the cluster busy?". Returns the list envelope {items, returned,
limit, total, truncated, hint} with a real total; each row has name, entity,
state, progress_pct, start_time, user, an active flag and error (for failed
recent tasks), running/queued first, then newest first — so limit drops the
oldest. vCenter keeps only a short recent-task
window, so an old task may simply be gone rather than absent.
Use this before blaming load: a migration or clone in flight explains pressure that get_host_performance shows. Pair with list_active_sessions to see who started it. Read-only — cancelling a task belongs to vmware-aiops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max task rows to return (None = all). | |
| target | No | vCenter/ESXi target from config (default if omitted). | |
| include_recent | No | Also include recently completed/failed tasks (default True). |