Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Aug 31, 2023
1 parent c0f6314 commit a3272bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Recorders/QueueSizes.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public function record(Beat $event): Enumerable
'connection' => $connection,
'queue' => $queue,
'size' => $this->queue->connection($connection)->size($queue),
// TODO we need to recommed adding indexes to the failed jobs "queue" and "connection" columns, otherwise
// this is gonna take forever on large tables.
'failed' => $this->failedJobs instanceof CountableFailedJobProvider
? $this->failedJobs->count($connection, $queue)
: 0,
Expand Down

0 comments on commit a3272bc

Please sign in to comment.