Verk.QueueManager
QueueManager interacts with redis to dequeue jobs from the specified queue.
Summary
ack(queue_manager, job) | Acknowledge that a job was processed |
dequeue(queue_manager, n, timeout \\ 5000) | Pop a job from the assigned queue and reply with it if not empty |
enqueue_inprogress(queue_manager) | Enqueue inprogress jobs back to the queue |
init(args) | Connect to redis |
name(queue) | Returns the atom that represents the QueueManager of the |
retry(queue_manager, job, exception, stacktrace, timeout \\ 5000) | Add job to be retried in the assigned queue |
Functions
Acknowledge that a job was processed
Pop a job from the assigned queue and reply with it if not empty
Enqueue inprogress jobs back to the queue
Connect to redis
Specs:
- name(binary | atom) :: atom
Returns the atom that represents the QueueManager of the queue
Add job to be retried in the assigned queue