diff --git a/lib/Alchemy/Phrasea/WorkerManager/Command/WorkerExecuteCommand.php b/lib/Alchemy/Phrasea/WorkerManager/Command/WorkerExecuteCommand.php index 8fde255710..ba3a1e130d 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Command/WorkerExecuteCommand.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Command/WorkerExecuteCommand.php @@ -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('Invalid max-processes option.Need an integer'); - return; + return 1; } elseif($maxProcesses) { $workerInvoker->setMaxProcessPoolValue($maxProcesses); }