Verk.SortedSet

This module interacts with the jobs on a sorted set

Summary

clear(key, redis)

Clears the sorted set

count(key, redis)

Counts how many jobs are inside the sorted set

delete_job(key, original_json, redis)

Deletes the job from the sorted set

range(key, start \\ 0, stop \\ -1, redis)

Lists jobs from start to stop

Functions

clear(key, redis)

Specs:

Clears the sorted set

count(key, redis)

Specs:

Counts how many jobs are inside the sorted set

delete_job(key, original_json, redis)

Specs:

  • delete_job(String.t, %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} | String.t, GenServer.server) :: boolean

Deletes the job from the sorted set

range(key, start \\ 0, stop \\ -1, redis)

Specs:

Lists jobs from start to stop