mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-3413 add timeout when emit webhook
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user