Nodes/WFA Node Suite (WaifuArchitect)/WFA Loop Shutdown ⚡ (WFA Suite)
ComfyUI Node

WFA Loop Shutdown ⚡ (WFA Suite)

A ComfyUI node in WFA Node Suite/Iterators with 10 inputs and 3 outputs.

By WAonGHub·Created 22 days ago·Updated 2 days ago· 1
WFA Loop Shutdown ⚡ (WFA Suite)
  • trigger_signal
  • index
  • current_loop
  • total_loops
◄index0►
◄reset_to0►
◄end_index10►
◄step1►
◄total_loops3►
◄current_loop1►
◄auto_queuetrue►
◄after_runShut Down PC►
◄delay_sec60►
CategoryWFA Node Suite/Iterators

Inputs (10)

NameTypeDefaultDescription
indexINT00–999999Current INT index output for this generation. Automatically counts up after each completed run.
reset_toINT00–999999The INT value `index` rewinds to after reaching `end_index` (e.g. 0 or 3).
end_indexINT100–999999The final index in your prompt list to count up to (inclusive) before rewinding to `reset_to`.
stepINT11–999999Amount to increment `index` after each completed generation.
total_loopsINT31–999999How many full passes through the list (`reset_to` -> `end_index`) to run before stopping.
current_loopINT11–999999Current pass number (1 to `total_loops`). Automatically advances after each full pass and resets to 1 when finished.
auto_queueBOOLEANtrueWhen enabled, automatically triggers the next generation in ComfyUI's queue until all passes finish (replaces ImpactQueueTrigger).
after_runCOMBOShut Down PCAction to perform AFTER the final generation in the final loop completely finishes saving: • Shut Down PC: Unloads VRAM, closes ComfyUI cleanly, and powers off your PC. • Sleep PC: Closes ComfyUI cleanly and puts your PC into low-power Sleep. • Hibernate PC: Closes ComfyUI cleanly and hibernates your PC. • Close ComfyUI: Closes ComfyUI (dropping GPU power to idle) while keeping Windows running. • Do Nothing: Behaves identically to the standard WFA Loop Iterator.
delay_secINT605–3600Safety countdown (in seconds) AFTER the final image finishes saving before power-off triggers. During this countdown, you can click '✖ ABORT SHUTDOWN' right on the node to cancel.
trigger_signalopt*Optional pass-through signal wire if you want this node to execute after a specific upstream node. Not required.

Outputs (3)

NameTypeDescription
indexINT—
current_loopINT—
total_loopsINT—