Skip to content
SHC Docs

shc task

inspect background tasks and workers

Reference for the task CLI group. Source: modules/task/commands/.

SubcommandDescription
lslist tasks (running and pending by default; -a for any status)
showshow a single task’s full state
cancelcancel a PENDING task
workerslist queue workers

list tasks (running and pending by default; -a for any status)

Alias: list. --dead overrides --status/--all (dead tasks are FAILED/TIMED_OUT with retries exhausted).

FlagTypeRequiredHelp
-S / --statusstrnocomma-separated status filter
-a / --allboolnoshow all tasks
--deadboolnoonly tasks that exhausted retries
--nodestrnoonly tasks claimed on this node
-n / --limitstrnonumber of entries to show

Source: modules/task/commands/

show a single task’s full state

Accepts a full task id or the unique 8-char prefix task ls prints.

Source: modules/task/commands/

cancel a PENDING task

Destructive — prompts; --yes skips. Accepts a full task id or the unique 8-char prefix task ls prints.

FlagTypeRequiredHelp
-r / --reasonstrnoreason recorded in the task’s error column
-y / --yesboolnoskip confirmation prompt

Source: modules/task/commands/

list queue workers

No declared flags.

Source: modules/task/commands/