execute_batch
Run multiple ComfyUI workflows in one batch, submit each for completion polling, and optionally control concurrency or stop on first error.
Instructions
Execute multiple workflows in batch. Submits each workflow and waits for completion (polling). Optional concurrency and stop_on_error. Requires COMFYUI_HOST.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflows | Yes | Array of workflow JSON strings | |
| timeout_ms | No | Per-workflow timeout in ms (default 300000) | |
| concurrency | No | Max workflows running at once (default 1) | |
| stop_on_error | No | Stop batch on first failure (default false) |