Skip to content

fix(availability-sync): clear orphaned *arr requests#2756

Closed
TorontoBaguette wants to merge 1 commit intoseerr-team:developfrom
TorontoBaguette:fix/orphaned-arr-requests
Closed

fix(availability-sync): clear orphaned *arr requests#2756
TorontoBaguette wants to merge 1 commit intoseerr-team:developfrom
TorontoBaguette:fix/orphaned-arr-requests

Conversation

@TorontoBaguette
Copy link
Copy Markdown

@TorontoBaguette TorontoBaguette commented Mar 23, 2026

Summary

  • clear requested media that was deleted from Radarr/Sonarr before it became available
  • only apply this to PROCESSING items that are no longer present in the linked *arr instance and are not present on the media server
  • keep non-404 *arr errors unchanged

Testing

  • pnpm typecheck:server
  • pnpm build:server

AI Disclosure

  • I used AI assistance to help inspect the codebase and draft changes, then manually reviewed, tightened, and tested the final patch myself.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 23, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0cffa16a-4d22-4526-9fc6-1cb9e841bcfa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@fallenbagel
Copy link
Copy Markdown
Collaborator

clear requested media that was deleted from Radarr/Sonarr before it became available

This is already handled by sonarr scan. And for radarr scan there is a pr opened right now (#817)

@TorontoBaguette TorontoBaguette force-pushed the fix/orphaned-arr-requests branch from ccf2c7e to ce73460 Compare March 23, 2026 21:34
@TorontoBaguette TorontoBaguette force-pushed the fix/orphaned-arr-requests branch from ce73460 to c28a3a4 Compare March 23, 2026 21:38
@fallenbagel
Copy link
Copy Markdown
Collaborator

clear requested media that was deleted from Radarr/Sonarr before it became available

This is already handled by sonarr scan. And for radarr scan there is a pr opened right now (#817)

#2311

This already handles these requests for sonarr. #817 handles it for movies.

@TorontoBaguette
Copy link
Copy Markdown
Author

After testing the Sonarr scan, it does not remove the request in Seer for the deleted TV Shows in Sonarr.

@fallenbagel, the case I am trying to address here is: media that is still stuck in PROCESSING, is not available on the media server, and has been deleted from Sonarr/Radarr entirely rather than just unmonitored.

Does it belong to the Sonarr/Radarr Scan logic instead of the AvailabilitySync?

@fallenbagel
Copy link
Copy Markdown
Collaborator

After testing the Sonarr scan, it does not remove the request in Seer for the deleted TV Shows in Sonarr.

With enable scan on?

@fallenbagel, the case I am trying to address here is: media that is still stuck in PROCESSING, is not available on the media server, and has been deleted from Sonarr/Radarr entirely rather than just unmonitored.

Does it belong to the Sonarr/Radarr Scan logic instead of the AvailabilitySync?

Sonarr/radarr scan. Availability scan is only for media that has become available.

@TorontoBaguette
Copy link
Copy Markdown
Author

Ah, I see, it’s #2311, in develop at the moment. I will try it and delete this draft PR in that case. Thanks for linking both solutions.

@TorontoBaguette
Copy link
Copy Markdown
Author

With enable scan on?

Yes, but I tested on Seer Stable 3.1.0

image

@TorontoBaguette
Copy link
Copy Markdown
Author

I will wait for the next release that includes #2311 and then reassess if anything still needs to be fixed.
Thank you

@TorontoBaguette
Copy link
Copy Markdown
Author

@fallenbagel Do you know if #2311 covers unmonitored shows in Sonarr as well as shows deleted entirely from Sonarr?

@fallenbagel
Copy link
Copy Markdown
Collaborator

@fallenbagel Do you know if #2311 covers unmonitored shows in Sonarr as well as shows deleted entirely from Sonarr?

Iirc I tested only with unmonitored and it worked perfectly. I did not test deleting shows but in theory it should work but you just mentioned that it doesn't so ill have to check

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