Skip to content

fix(instance): raise the instance timeout cap from 5 to 15 minutes - #35

Open
linmar wants to merge 1 commit into
refringe:developfrom
linmar:fix/instance-timeout-cap
Open

fix(instance): raise the instance timeout cap from 5 to 15 minutes#35
linmar wants to merge 1 commit into
refringe:developfrom
linmar:fix/instance-timeout-cap

Conversation

@linmar

@linmar linmar commented Aug 16, 2026

Copy link
Copy Markdown

Summary

Raise the validation ceiling for the per-instance timeout from 5 to 15 minutes. Radarr-shaped libraries with tens of thousands of items can take longer than five minutes to serialise /api/v3/movie: a Whisparr Eros instance with 30k scenes returns a ~110 MB payload and needed 4½ minutes while the app was busy, so the library fetch failed on every cycle at the current cap. The default stays 15 s; only the ceiling moves.

Changes

  • internal/instance/service.go: maxTimeoutMs 300000 → 900000 (comment explains why).

Related issues

none

Test plan

  • Existing tests pass (make test)
  • New tests added for new functionality (constant change only; existing validation tests cover the bound)
  • Linter passes (make lint — 0 issues)

Radarr-shaped libraries with tens of thousands of items can take longer than
five minutes to serialise /api/v3/movie (a Whisparr Eros instance with 30k
scenes returns ~110 MB and needed 4.5 minutes while the app was busy), which
made the library fetch fail on every cycle. The default stays at 15 s; only
the validation ceiling moves.
@linmar
linmar requested a review from refringe as a code owner August 16, 2026 07:43
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.

1 participant