mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge pull request #3684 from alchemy-fr/PHRAS-3129-worker-rabbit-not-up
PHRAS-3129 Docker - Worker - if rabbitMQ is not up, worker need to exit with 1
This commit is contained in:
@@ -45,7 +45,7 @@ class WorkerExecuteCommand extends Command
|
||||
if ($channel == null) {
|
||||
$output->writeln("Can't connect to rabbit, check configuration!");
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
$serverConnection->declareExchange();
|
||||
@@ -56,7 +56,7 @@ class WorkerExecuteCommand extends Command
|
||||
if ($input->getOption('max-processes') != null && $maxProcesses == 0) {
|
||||
$output->writeln('<error>Invalid max-processes option.Need an integer</error>');
|
||||
|
||||
return;
|
||||
return 1;
|
||||
} elseif($maxProcesses) {
|
||||
$workerInvoker->setMaxProcessPoolValue($maxProcesses);
|
||||
}
|
||||
|
Reference in New Issue
Block a user