Acly / krita-ai-diffusion

Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.
https://www.interstice.cloud
GNU General Public License v3.0
6.91k stars 339 forks source link

Fix 1137: Display ComfyUI Queue State #1156

Open FeepingCreature opened 2 months ago

FeepingCreature commented 2 months ago

Fix #1137: Query ComfyUI queue state and use it to display count of jobs in the queue before ours.

Also avoid clearing jobs that aren't ours.

FeepingCreature commented 2 months ago

Re why didn't I fix cancel current... so far as I can tell, this can only cancel another user's task if you do it right as a task starts and ends, and that's p much unavoidable due to comfy's anemic api, ie. interrupt not having a way to specify the job id we expect.

FeepingCreature commented 2 months ago

Something's wrong with the code as it stands, queueing pictures makes the progress bar flicker. I'll check the logs tomorrow.

FeepingCreature commented 2 months ago

Ah ftr I'm not gonna touch this until end of the week cause I'm on a conference :)