From 6b3937298097852969f296aa9667a9ef1ccc2021 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Sat, 3 Feb 2024 21:37:02 +0300 Subject: [PATCH] pkp/pkp-lib#9686 Fixed the queue parameter --- tools/jobs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/jobs.php b/tools/jobs.php index f7a98c6fb7f..05cf0c521d2 100644 --- a/tools/jobs.php +++ b/tools/jobs.php @@ -233,7 +233,7 @@ protected function failed(): void if (in_array('--redispatch', $parameterList) || ($jobIds = $this->getParameterValue('redispatch'))) { $jobsCount = Repo::failedJob()->redispatchToQueue( - $this->getParameterValue('--queue'), + $this->getParameterValue('queue'), collect(explode(',', $jobIds ?? '')) ->filter() ->map(fn ($item) => (int)$item) @@ -245,7 +245,7 @@ protected function failed(): void if (in_array('--clear', $parameterList) || ($jobIds = $this->getParameterValue('clear'))) { $jobsCount = Repo::failedJob()->deleteJobs( - $this->getParameterValue('--queue'), + $this->getParameterValue('queue'), collect(explode(',', $jobIds ?? '')) ->filter() ->map(fn ($item) => (int)$item)