Skip to content

fix(health): improve relinking, library path tracking and blocklist logic#458

Merged
javi11 merged 4 commits intojavi11:mainfrom
drondeseries:main
Apr 3, 2026
Merged

fix(health): improve relinking, library path tracking and blocklist logic#458
javi11 merged 4 commits intojavi11:mainfrom
drondeseries:main

Conversation

@drondeseries
Copy link
Copy Markdown
Contributor

This PR implements a more robust health and repair workflow:

  1. Immediate Library Path Tracking: Captures the absolute library_path as soon as a file is imported or a webhook is received.
  2. Robust Relinking: Allows RelinkFileByFilename to update records in any status, ensuring paths are kept in sync during renames.
  3. Corrected Blocklisting: Implements a precise 4-step blocklisting process that traces 'Import' events back to original 'Grab' events via downloadId. This natively triggers Sonarr/Radarr's release-banning logic.
  4. Resilient Matching: Adds a 15-second retry loop to handle ARR database propagation delays.
  5. Fresh State Fetching: Ensures the HealthWorker re-fetches records from the DB right before repair attempts to pick up concurrent metadata updates.

@javi11 javi11 merged commit 54ecf97 into javi11:main Apr 3, 2026
2 checks passed
drondeseries referenced this pull request in drondeseries/altmount_old Apr 16, 2026
…ogic (#458)

Co-authored-by: drondeseries <drondeseries@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants