diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-19 19:22:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-19 19:22:38 +0300 |
| commit | 3ce06a482fafd884013c9a7a827d9ccb183a05da (patch) | |
| tree | 6052c8fed4b8a08e241aa94cdd8a235324314e4e /player-server/internal/api/integration_test.go | |
| parent | 4215db6718d4ea662084b647398536aa51934ac6 (diff) | |
Add HTTP retry + per-host backoff to podcast feed fetching
Wraps the feed checker's HTTP GET in a bounded retry loop (3 attempts,
exponential 500ms->1s->2s) and adds a per-host failure tracker so a
flaky host is skipped for 5 minutes instead of being hammered on every
scheduled tick. Skipped fetches still bump the existing
consecutive_failures counter so feed-level scheduling continues to
honour persistent failures.
5xx and transport errors are retried; 4xx is treated as terminal so we
do not retry on 404/410/403. Retry params and host-backoff window are
configurable via a FeedFetchPolicy struct field with exported defaults.
Diffstat (limited to 'player-server/internal/api/integration_test.go')
0 files changed, 0 insertions, 0 deletions
