Skip to content

Commit

Permalink
Merge pull request #48 from aloware/fix/update-stats
Browse files Browse the repository at this point in the history
Fix Update Stats
  • Loading branch information
hamed-aloware authored Apr 11, 2023
2 parents 699fa72 + 6b0c713 commit 7291fe7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FairSignalJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ private function selectPartition($repository, $partitionsMethod = 'partitions')

public function updateStats($uuid)
{
// if FairQueue stats config is disabled ignore updating stats
if(!config('fair-queue.stats.enabled')) {
return;
}

$redis = FairQueue::getConnection();
$queue = $this->queue;
$partition = $this->partition;
Expand Down

0 comments on commit 7291fe7

Please sign in to comment.