Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Pause Queue #1032

Open
crowbait opened this issue Jul 30, 2023 · 12 comments
Open

Feature request: Pause Queue #1032

crowbait opened this issue Jul 30, 2023 · 12 comments
Labels
Feature A new feature to add to ComfyUI.

Comments

@crowbait
Copy link

I regularly find myself in the situation that I'm working with ComfyUI and something else (eg. work related) comes up and requires my attention (and my PC's processing power). Now I always have to clear the queue, do whatever needs doing and then have to write the prompts I was trying out and queuing AGAIN, if I can even remember what all the stuff I was trying out actually was.

It would be great to be able to pause the queue after the current run finishes and then just resume it after an arbitrary amount of time. ComfyUI should clear all locks on VRAM on pause (so you can actually DO whatever you wanted to do; maybe this could also be a setting for the user to choose) and restart from scratch when the queue gets resumed.

Basically it's an extension of "clear queue and resume later" without the need of re-configuring everything you had queued.

@maestrodamus
Copy link

I came here to post something along these lines as well. Also, having the ability to save and load a queue would be a wonderful feature. I've had ComfyUI come to a halt as my machine's video memory gets sparse and then upon restarting the server, the queue needs to be populated again. Please have a look into adding a way to export and import queue items, that would be an amazing feature to have.

@MojoJojo43
Copy link

agreed, I would like to be able to pause the queue as well

@ghostsquad
Copy link

Would also love this

@fashiontechguru
Copy link

This would be extremely useful.

@madsonweb
Copy link

No news about this feature?

@ltdrdata
Copy link
Collaborator

ltdrdata commented Feb 9, 2024

Implementing the pause feature is possible, but it would require modification the execution model, so it might be better to pass it on after #2666 is merged.

Once that functionality is implemented, it should be re-implemented upon the merge of the corresponding PR.

@BlackGlory
Copy link

Tip:
On Windows you can pause a process with the Pause Break key and resume a process with Ctrl+Z.
It may be useful for some as a temporary solution.

@WeeBull
Copy link

WeeBull commented Feb 10, 2024

Tip: On Windows you can pause a process with the Pause Break key and resume a process with Ctrl+Z. It may be useful for some as a temporary solution.

Similar on Linux with Ctrl+Z, but that doesn't free VRAM. I think that's the key aspect. Allow something else to use the VRAM.

@deadcat000
Copy link

I'd be happy even if you could just pause the queue between generations.

@thijs-hakkenberg
Copy link

Same here. Or in the worst case just an ability to export and load the queue...

@Satellile
Copy link

I had the same issue and made a command-line tool to fix it, "Yara". You can save a queue to disk, close ComfyUI, and whenever you're ready to resume generating you can load the queue again. In addition to saving/loading queues it also has a bunch of other features to solve various pain points I had.

It's only for Windows, though I made a Linux release on an older version. If you're on Linux and use Rust you should be able to compile it from source pretty easily, I think.

@Blueridge-GH
Copy link

It would be extremely helpful to be able to add things to the queue without having to start it immediately. Have separate "Add To Queue" and "Run Queue" buttons, maybe in the extra options section. Then you could load up the queue as you go along with things to run later and still be able to continue working using the "Queue Prompt" button.

Or, I would be overjoyed just to have pausing between generations, or exporting and loading queues, as others have mentioned. As the saying goes, "please don't let the perfect be the enemy of the good enough".

@mcmonkey4eva mcmonkey4eva added the Feature A new feature to add to ComfyUI. label Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new feature to add to ComfyUI.
Projects
None yet
Development

No branches or pull requests