interrupt_execution
Stops a running ComfyUI workflow, optionally for a specific prompt ID, and can remove it from the queue to free GPU resources.
Instructions
Stop the currently running workflow on ComfyUI. Optionally pass prompt_id to interrupt only that prompt. If cleanup_after_ms is set (and prompt_id given), after interrupt the tool will poll the queue and remove the prompt from queue if it is still there (frees GPU for next job). Requires COMFYUI_HOST.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_id | No | Optional: interrupt only this prompt if it is running; omit to interrupt current run | |
| cleanup_after_ms | No | If set (and prompt_id given), after interrupt poll queue and remove prompt if still running (e.g. 5000). Helps free GPU after FLUX/interrupt. |