Skip to content

Don't run heavy DB tasks while scan is running - #17182

Merged
crobibero merged 2 commits into
jellyfin:masterfrom
Shadowghost:vacuum-noscan
Jun 27, 2026
Merged

crobibero merged 2 commits into
jellyfin:masterfrom
Shadowghost:vacuum-noscan

Conversation

@Shadowghost

Copy link
Copy Markdown
Contributor

Running the optimization or people task while a scan is running leads to heavy DB contention that might lead to none of them ever completing

Changes

  • Skip People and optimization task if scan is running

Code assistance
None

Issues
Fixes #17180

@jellyfin-bot

Copy link
Copy Markdown
Contributor

Jellyfin API (v 12.0.0)


Result


No differences. Specifications are equivalent

@JPVenson JPVenson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its a simple workaround. Same goes for backups though too.

@theguymadmax theguymadmax moved this from Todo to Approved in Jellyfin v12 Jun 26, 2026
@IDisposable

Copy link
Copy Markdown
Contributor

Question, would it be more appropriate to cancel the scan when a database backup is requested? Seems like taking a backup is a higher priority task

@theguymadmax

Copy link
Copy Markdown
Member

In 12.0, the web added a warning when a scan is in process and attempting to make a backup:

jellyfin/jellyfin-web#7923
1

@crobibero
crobibero merged commit 1efdad3 into jellyfin:master Jun 27, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in Jellyfin v12 Jun 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[v12] Initial Library Scan - Scheduled Tasks block running Scan

6 participants