fix(media-request-subscriber): update the parent status of the request even if *arr failed#2462
fix(media-request-subscriber): update the parent status of the request even if *arr failed#2462gauthier-th wants to merge 1 commit intodevelopfrom
Conversation
…t even if *arr failed
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughError handling in the MediaRequestSubscriber is refactored to separate concerns. The afterUpdate and afterInsert hooks now use distinct try-catch blocks for media request sending operations versus parent status updates, with dedicated logging for each failure type. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug where media requests would remain in FAILED status even after the associated media becomes AVAILABLE on Jellyfin. The fix separates error handling for sending requests to *arr services from updating parent status, ensuring that the parent status update executes even when *arr services fail.
Changes:
- Split try-catch blocks in
afterUpdateandafterInsertmethods to isolate *arr service errors from parent status updates - Improved error logging with specific messages for each operation (sending to *arr vs. updating parent status)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Preview tag: |
Description
This PR adds a separate try/catch block around the
sendTo*arrfunctions to ensure that theupdateParentStatusis updated even if sending the request failed.This should resolve a bug where a request stays
FAILEDwhile its associated media has been marked asAVAILABLE.How Has This Been Tested?
Not tested. Check #2409.
Checklist:
pnpm buildpnpm i18n:extractSummary by CodeRabbit