SwarmUI icon indicating copy to clipboard operation
SwarmUI copied to clipboard

Reset All Metadata - backend malfunction until complete

Open brendanhoar opened this issue 5 months ago • 1 comments

Expected Behavior

Metadata would be rebuilt in a temporary space, and then, when finished, swapped into place in a single transaction or equivalent, leading to no interruption of queued requests.

Actual Behavior

Instead, metadata is removed before the scan finishes (perhaps before it starts), leading to interruptions or non-applied models in currently-queued requests. This is particularly problematic for libraries on slow media and/or large libraries

Steps to Reproduce

Queue up a dozen or so image requests using multiple LORAs. Press Reset All Metadata. A pop-up error may notify you of a missing model that you actually have. Back end may continue processing image request, however, some may be missing Loras.

Debug Logs

N/A

Other

This may be working as intended, but if so, it may be wise to warn the user that it should not be run during image generation and/or make the two processes mutually exclusive.

brendanhoar avatar Sep 20 '24 18:09 brendanhoar