Verk.QueueManager (Verk v1.7.2) View Source

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

Link to this section Summary

Functions

Acknowledges 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.

Enqueues inprogress jobs back to the queue.

Connects to redis.

Removes 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

Acknowledges that a job was processed.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

dequeue(queue_manager, n, timeout \\ 5000)

View Source

Pop a job from the assigned queue and reply with it if not empty.

Link to this function

enqueue_inprogress(queue_manager)

View Source

Enqueues inprogress jobs back to the queue.

Connects to redis.

Link to this function

malformed(queue_manager, job)

View Source

Removes a malformed job from the inprogress queue.

Specs

name(binary() | atom()) :: atom()

Returns the atom that represents the QueueManager of the queue.

Link to this function

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

View Source

Add job to be retried in the assigned queue.