Verk v1.7.0 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
Returns a specification to start this module under a supervisor.
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
ack(queue_manager, job)
Acknowledge that a job was processed
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
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(list)
Connect to redis
malformed(queue_manager, job)
Remove a malformed job from the inprogress queue
name(queue)
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