Verk v0.13.4 Verk.QueueManager

QueueManager interacts with redis to dequeue jobs from the specified queue.

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

Functions

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

malformed(queue_manager, job)

Remove a malformed job from the inprogress queue

name(queue)

Specs

name(binary | atom) :: atom

Returns the atom that represents the QueueManager of the queue

retry(queue_manager, job, exception, stacktrace, timeout \\ 5000)

Add job to be retried in the assigned queue