This commit adds ability to pass include_dead from Queue.size to Backend.size.
It can be quite crucial to exclude dead queue size from job's queue size, since dead letter queue is never cleaned. As for now it's possible to call SomeJob.queue.backend.size(false), but from client's perspective it looks like accessing some internals. In my opinion SomeJob.queue.size(false) would be better in terms of encapsulation.
Thank you for the library!
This commit adds ability to pass
include_dead
fromQueue.size
toBackend.size
.It can be quite crucial to exclude dead queue size from job's queue size, since dead letter queue is never cleaned. As for now it's possible to call
SomeJob.queue.backend.size(false)
, but from client's perspective it looks like accessing some internals. In my opinionSomeJob.queue.size(false)
would be better in terms of encapsulation.IMHO
Queue.backend
can be marked as private