Verk.Queue
This module interacts with a queue
Summary
clear(queue) | Clears the |
count(queue) | Counts how many jobs are enqueued on a queue |
delete_job(queue, original_json) | Deletes the job from the queue |
range(queue, start \\ 0, stop \\ -1) | Lists enqueued jobs from |
Functions
Specs:
- clear(binary) :: boolean
Clears the queue
Specs:
- count(binary) :: integer
Counts how many jobs are enqueued on a queue
Specs:
- delete_job(binary, %Verk.Job{args: term, class: term, enqueued_at: term, error_backtrace: term, error_message: term, failed_at: term, finished_at: term, jid: term, original_json: term, queue: term, retried_at: term, retry_count: term} | binary) :: boolean
Deletes the job from the queue
Specs:
- range(binary, integer, integer) :: [Verk.Job.T]
Lists enqueued jobs from start
to stop