ComfyUI Node

Kill All Processes

The nuclear option, scoped to this pack

By sebagallo·Created 9 months ago·Updated 9 months ago· 1
Kill All Processes
  • trigger
  • trigger
  • success
  • status

Kill All Processes is the emergency brake of the comfyui-sg-process-manager pack. When a workflow has started a bunch of background processes and something went sideways, one trigger of this node tears all of them down at once. It's a safety valve, and like most safety valves you hope to rarely use it - but you're glad it's there.

Scope matters, so let's be precise: it only kills processes this pack is tracking. If you have an ffmpeg running outside ComfyUI, it won't touch it. But every key in the pack's global registry - every process started by Start Process and not yet killed - gets force-killed in one shot. This is exactly the behavior you want on a "reset everything" branch at the end of a run, or when a workflow half-failed and left a couple of stragglers.

How it works

The mechanism is blunt and deliberately so. The node calls the manager's kill-all routine, which counts every registered process and force-kills them all - kill, not terminate. No graceful shutdown, no per-process negotiation. If nothing is running, it doesn't error out; it reports success with a "No processes to kill" status, which makes it safe to leave wired into a workflow unconditionally.

Inputs and outputs are minimal, like the rest of the pack:

  • trigger (any type, passthrough) - the node fires when fed and echoes the value through.
  • success (BOOLEAN) - whether the operation succeeded.
  • status (STRING) - "No processes to kill" when empty, otherwise "Force killed N processes".

Install

Same as every node in this pack. ComfyUI Manager, search "comfyui-sg-process-manager", or:

cd ComfyUI/custom_nodes
git clone https://github.com/sebagallo/comfyui-sg-process-manager.git

Restart ComfyUI. No dependencies, no downloads - it's stdlib-only.

The thing to keep in mind

Because it always force-kills, anything those processes were writing gets abandoned mid-write - files can be left half-finished. If you care about graceful cleanup, use Kill Process with force_kill off per key instead. And the pack's own auto-cleanup means every tracked process dies when ComfyUI exits anyway, so this node is really for the "I want them gone now, not at shutdown" moments.

One more honest note: this pack is young and small (v1.1.0, single maintainer, no community footprint yet), so treat it as you would any fresh custom node - check what a shared workflow does before loading it, since these nodes run commands with your full OS permissions.

CategoryProcess Management

Inputs (1)

NameTypeDefaultDescription
trigger*

Outputs (3)

NameTypeDescription
trigger*
successBOOLEAN
statusSTRING