Skip to content

Commit

Permalink
pkp#9686 Fixed the queue parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni authored and ipula committed Feb 22, 2024
1 parent b52f08a commit 6b39372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 6b39372

Please sign in to comment.