Skip to content

Commit

Permalink
fix(statsd): getQueueLength of the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Realtin committed Apr 2, 2019
1 parent 0d5ed82 commit 58cbac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ require('./lib/rollbar')
const queueKeys = Object.keys(queues)
statsd.gauge('queues.account-jobs', queueKeys.length)
queueKeys.map((queueId) => {
statsd.gauge('queues.account-jobs-by-job', queues[queueId].length || 0, { tag: queueId })
statsd.gauge('queues.account-jobs-by-job', queues[queueId].getQueueLength() || 0, { tag: queueId })
})
}, 20000)
}
Expand Down

0 comments on commit 58cbac6

Please sign in to comment.