[Self-hosted] GIF picker intermittently returns shard_unavailable on first GetFeatured request

(#890) Bug Fixed media self-hosting

Thread

Comment by @SolunaCG
RexSystem 1 vote originally by @SolunaCG on GitHub OP
Retested after updating and I can no longer reproduce the issue. I restarted both gifs and gifs-shard multiple times and tested cold GetFeatured requests with sv-SE and pt-BR. All returned 200, including cold requests taking around 1.2–1.7s. I also did a final normal test after restarting both GIF services and opening the GIF picker normally. The first request returned:
GET /v1/gifs/featured
status: 200
durationMs: 324
Before the fix, the same cold-request scenario repeatedly resulted in 503 shard_unavailable after ~5 seconds. Looks fixed on my instance. Thanks a lot, Hampus!