ArtVentureX / sd-webui-agent-scheduler

619 stars 63 forks source link

Position in queue #105

Open finndev opened 1 year ago

finndev commented 1 year ago

Have I missed something in the docs? I have queued 10 items to the scheduler and I would like to the queue position for task id X. This doesn't seem possible in a fast way.

The history and queue API could do that, but it is incredibly slow when having multiple tasks queued.

artventuredev commented 1 year ago

You want to get the position of a task in queue? There's no API for this yet. I'll add this to backlog.

artventuredev commented 1 year ago

New API /task/{id}/position was added in the latest update, you can give it a try. Positions also returned via /task/{id} and /queue APIs

Vykq commented 10 months ago

It would be also cool to get a percents of creation if status is generating