mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
PHRAS-3129 fix worker exit code
This commit is contained in:
@@ -45,7 +45,7 @@ class WorkerExecuteCommand extends Command
|
|||||||
if ($channel == null) {
|
if ($channel == null) {
|
||||||
$output->writeln("Can't connect to rabbit, check configuration!");
|
$output->writeln("Can't connect to rabbit, check configuration!");
|
||||||
|
|
||||||
return;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$serverConnection->declareExchange();
|
$serverConnection->declareExchange();
|
||||||
@@ -56,7 +56,7 @@ class WorkerExecuteCommand extends Command
|
|||||||
if ($input->getOption('max-processes') != null && $maxProcesses == 0) {
|
if ($input->getOption('max-processes') != null && $maxProcesses == 0) {
|
||||||
$output->writeln('<error>Invalid max-processes option.Need an integer</error>');
|
$output->writeln('<error>Invalid max-processes option.Need an integer</error>');
|
||||||
|
|
||||||
return;
|
return 1;
|
||||||
} elseif($maxProcesses) {
|
} elseif($maxProcesses) {
|
||||||
$workerInvoker->setMaxProcessPoolValue($maxProcesses);
|
$workerInvoker->setMaxProcessPoolValue($maxProcesses);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user