mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
PHRAS-3413 add timeout when emit webhook
This commit is contained in:
@@ -343,6 +343,8 @@ workers:
|
||||
pullAssets:
|
||||
ttl_retry: 5000
|
||||
max_retry : 5
|
||||
webhook:
|
||||
timeout: 30
|
||||
|
||||
externalservice:
|
||||
ginger:
|
||||
|
@@ -89,6 +89,7 @@ class WebhookWorker implements WorkerInterface
|
||||
$proxyConfig = new NetworkProxiesConfiguration($this->app['conf']);
|
||||
|
||||
$clientOptions = [
|
||||
'timeout' => $this->app['conf']->get(['workers', 'webhook', 'timeout'], 30), // default time out 30 sec if not set
|
||||
'connect_timeout' => 50, // should be less than default rabbit timeout 60 to avoid to block Q
|
||||
'headers' => [
|
||||
'User-Agent' => sprintf('Phraseanet/%s (%s)', $version->getNumber(), $version->getName())
|
||||
|
@@ -335,7 +335,8 @@ workers:
|
||||
password: ''
|
||||
vhost: /
|
||||
heartbeat: 60
|
||||
|
||||
webhook:
|
||||
timeout: 30
|
||||
externalservice:
|
||||
ginger:
|
||||
AutoSubtitling:
|
||||
|
Reference in New Issue
Block a user