Skip to content

Commit

Permalink
Merge branch 'workload-per-queue' of https://github.com/arjanwestdorp…
Browse files Browse the repository at this point in the history
…/horizon into workload-per-queue
  • Loading branch information
taylorotwell committed Feb 14, 2021
2 parents b4e8c6a + 96b177d commit 4cb7adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repositories/RedisWorkloadRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ public function get()
return [$queueName => $this->queue->connection($connection)->readyNow($queueName)];
});

$splitQueues = Str::contains($queue, ',') ? $length->map(function ($length, $queueName) use ($connection, $totalProcesses) {
$splitQueues = Str::contains($queue, ',') ? $length->map(function ($length, $queueName) use ($connection, $totalProcesses, &$wait) {
return [
'name' => $queueName,
'length' => $length,
'wait' => $this->waitTime->calculateTimeToClear($connection, $queueName, $totalProcesses),
'wait' => $wait += $this->waitTime->calculateTimeToClear($connection, $queueName, $totalProcesses),
];
}) : null;

Expand Down

0 comments on commit 4cb7adf

Please sign in to comment.