From 93c32b9a114ef484f33a1a38beae42d6dc1eb806 Mon Sep 17 00:00:00 2001 From: aina esokia Date: Wed, 6 Jan 2021 16:53:30 +0300 Subject: [PATCH] PHRAS-3129 fix worker exit code --- .../Phrasea/WorkerManager/Command/WorkerExecuteCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }