This repository was archived by the owner on May 14, 2026. It is now read-only.
Repository navigation
Retry failed server connections at 60s cadence - #21
Merged
Merged
Conversation
generate_server_connections now records failures on app_state, and the main loop's wait phase re-runs it every 60s while any are outstanding. When all servers reconnect, fire request_manual_sync so the dashboard goes green and a sync runs immediately instead of waiting for the next hourly cycle. Fixes Plex/Jellyfin red dots after Unraid reboots when those services are still in startup maintenance at ferret boot time. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generate_server_connectionsnow records connection failures onapp_staterequest_manual_syncso the dashboard goes green and a sync runs immediately instead of waiting for the next hourly cycleWhy
After an Unraid reboot, ferret often boots while Plex is still running startup-maintenance (HTTP 503) and Jellyfin is resetting connections. Those servers get registered as `disconnected` in the dashboard and stay red for the full `SLEEP_DURATION` (1h default) before ferret tries again. This patch self-heals within a minute of the upstream services coming back.
Test plan
🤖 Generated with Claude Code