ArtVentureX / sd-webui-agent-scheduler

599 stars 60 forks source link

[Feature Request] Indefinite repeat/pin item and do not dequeue (Generate Forever, possibly ordered) #235

Open Nyxeka opened 3 months ago

Nyxeka commented 3 months ago

It would be pretty cool to use this as a general ongoing-job-manager with the webui.

Basically, there would be a button in both the queue history and active queue:

image

The button would "Pin" a task to the queue. On complete, the item would then simply move to the bottom of the queue, rather than being dequeued.

This would be quite useful if queued tasks were something that can be managed from different clients for a single user (phone, webui on desktop, or even remote).

This is pretty much directly related to the built-in "Generate forever" feature. image

The advantage is that instead of blocking the queue for 8000 upcoming images for a single batch, you can just continuously generate. Stopping the queue would of course be as simple as unpinning the task (or hitting pause, etc...)

I will likely take a quick attempt at this, figured it may be useful for others as well.

Nyxeka commented 3 months ago

implemented here https://github.com/Nyxeka/sd-webui-agent-scheduler/tree/nyxeka/add_pin_functionality

Disclaimer: I've never used typescript/js before really, there are likely bugs, but it seems to work.

Not sure if it's an existing issue but if I queue up a task and then cancel it immediately, switching tabs and then switching back has the task show up again.

barring all of this I'd have opened a PR... Let me know otherwise if it seems useful.

chrome_NI2VKoQNWK chrome_HhMLRQmpup

default behaviour is that it will run unpinned tasks first, then run the pinned tasks.