Skip to content

Commit

Permalink
Alphabetically sort jobs/queues for metrics (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightwatson authored Oct 6, 2021
1 parent dd3e4dd commit b348f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repositories/RedisMetricsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function measuredJobs()

return collect($classes)->map(function ($class) {
return preg_match('/job:(.*)$/', $class, $matches) ? $matches[1] : $class;
})->all();
})->sort()->values()->all();
}

/**
Expand All @@ -54,7 +54,7 @@ public function measuredQueues()

return collect($queues)->map(function ($class) {
return preg_match('/queue:(.*)$/', $class, $matches) ? $matches[1] : $class;
})->all();
})->sort()->values()->all();
}

/**
Expand Down

0 comments on commit b348f14

Please sign in to comment.