From 6f9739d4c807f7397f99a030aab32d0a5933a57f Mon Sep 17 00:00:00 2001 From: thibaud-lclr Date: Sun, 5 Apr 2026 21:01:29 +0200 Subject: [PATCH] fix: retry TMDB requests on timeout and 5xx errors --- config/services.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/services.yaml b/config/services.yaml index cebdc53..b312119 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -20,5 +20,15 @@ services: App\: resource: '../src/' + app.http_client.tmdb: + class: Symfony\Component\HttpClient\RetryableHttpClient + arguments: + $client: '@http_client' + $maxRetries: 3 + + App\Gateway\TMDBGateway: + arguments: + $client: '@app.http_client.tmdb' + # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones