Verk v1.1.1 Verk.QueueManager
QueueManager interacts with redis to dequeue jobs from the specified queue.
Link to this section Summary
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
Remove a malformed job from the inprogress queue
Returns the atom that represents the QueueManager of the queue
Add job to be retried in the assigned queue
Link to this section Functions
Link to this function
ack(queue_manager, job)
Acknowledge that a job was processed
Link to this function
dequeue(queue_manager, n, timeout \\ 5000)
Pop a job from the assigned queue and reply with it if not empty
Link to this function
enqueue_inprogress(queue_manager)
Enqueue inprogress jobs back to the queue
Link to this function
init(args)
Connect to redis
Link to this function
malformed(queue_manager, job)
Remove a malformed job from the inprogress queue
Returns the atom that represents the QueueManager of the queue
Link to this function
retry(queue_manager, job, exception, stacktrace, timeout \\ 5000)
Add job to be retried in the assigned queue