Fix: Release DB Lock on Large Image Libraries (#6845)

This commit is contained in:
Gykes 2026-04-22 21:57:53 -07:00 committed by GitHub
parent 22d2dbc46b
commit a33cca6033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,7 +262,9 @@ func (j *GenerateJob) Execute(ctx context.Context, progress *job.Progress) error
for f := range queue {
if job.IsCancelled(ctx) {
break
// keep draining the queue so the producer goroutine can finish
// and release its read transaction, otherwise the DB stays locked
continue
}
wg.Add()