fix: retry TMDB requests on timeout and 5xx errors

This commit is contained in:
thibaud-lclr 2026-04-05 21:01:29 +02:00
parent 665a6c5385
commit 6f9739d4c8

View file

@ -20,5 +20,15 @@ services:
App\: App\:
resource: '../src/' 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 # add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones # please note that last definitions always *replace* previous ones