fix: retry TMDB requests on timeout and 5xx errors
This commit is contained in:
parent
665a6c5385
commit
6f9739d4c8
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue