tinkerhub / tinkerspace-stable-diffusion

An interactive showcase for Stable Diffusion that runs on a large screen
MIT License
8 stars 5 forks source link

Better image expiry #6

Closed ajnas closed 1 year ago

ajnas commented 1 year ago

Moved to a queue based system for managing timeout Removed all usages of expiry_at There'll be three lists of items -> "queue", "ready", "completed"

queue -> contains "pending", "processing" and "ready" items. ready -> contains items currently waiting to be shown (server manages the 15s timeouts in this queue and removes the entries one a time completed -> contains items for which images are generated. Latest item in this list is to be shown as the current image.