Skip to content

Fix: Release DB Lock on Large Image Libraries#6845

Merged
WithoutPants merged 1 commit intostashapp:developfrom
Gykes:release-db-on-image-hash
Apr 23, 2026
Merged

Fix: Release DB Lock on Large Image Libraries#6845
WithoutPants merged 1 commit intostashapp:developfrom
Gykes:release-db-on-image-hash

Conversation

@Gykes
Copy link
Copy Markdown
Collaborator

@Gykes Gykes commented Apr 18, 2026

When cancelling an image phash generation task on a library with more than 200K images, the consumer breaks out of the queue loop while the producer is still inside a read transaction queuing items. Once the 200K buffer fills, the producer blocks on send indefinitely, holding the database lock.

This is untested in a real situation as I don't have that many images. I would request that @BonerFide test this out for me.

fixes: #6842

@Gykes Gykes added the bug Something isn't working label Apr 18, 2026
@Gykes Gykes added this to the Version 0.32.0 milestone Apr 18, 2026
@Gykes Gykes requested a review from WithoutPants April 18, 2026 23:35
@WithoutPants WithoutPants merged commit a33cca6 into stashapp:develop Apr 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cancelling the image phash generation task doesn't release the database lock

2 participants