edgurgel / verk

A job processing system that just verks! 🧛‍

Home Page:https://hex.pm/packages/verk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add pending jobs to queue stats

tlvenn opened this issue · comments

Would it be possible / easy enough to add the number of pending jobs to the queue stats ? Right now it does not seem possible to compute this at all using the API.

QueueStats are current stats about the running queues. For the data sitting inside Redis we usually use the Queue API. Verk Web has most of the data available: https://github.com/edgurgel/verk_web

https://github.com/edgurgel/verk_web/blob/master/web/views/queues_view.ex#L4-L9

Maybe I should rename it to "RunningQueueStats" ? 🤔