Comfy-Org / Comfy-Org/ComfyUI

Automatically start workflow with "Auto Queue" during ComfyUI startup

Open
#4,128 14 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Feature Idea

I would like to be able to specify a parameter in the bat file when running main.py ComfyUI that will force an endless queue for a specific specified workflow.
For example, I suggest the following command:
**ComfyUI\main.py --infinite-queue-at-startup "C:/Workflows/workflow1.json"**

**--infinite-queue-at-startup** is a parameter that will force ComfyUI to start the workflow immediately after ComfyUI is launched.
Together with **--infinite-queue-at-startup**, it is necessary (but can be optional) to pass the path to the workflow that needs to be launched in an infinite loop after ComfyUI is launched - for example **"C:/Workflows/workflow1.json"**.

It would also be useful to add the parameter --**ignore**-infinite-queues-on-startup, which will ignore the automatic start of the endless queue for previously opened browser tabs with auto-queue enabled. But this parameter should not affect the running workflow, caused by the parameter --infinite-queue-at-startup

This would be incredibly useful for those cases when ComfyUI is launched on servers or on machines that are restarted very often.

If such functionality already exists, I will be glad to receive your tips!

### Existing Solutions

I didn't find it, I didn't see such a parameter or functionality in the list of supported parameters of main.py

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.