Verk.SortedSet.requeue_job
You're seeing just the function
requeue_job
, go back to Verk.SortedSet module for more information.
Specs
requeue_job( String.t(), %Verk.Job{ args: term(), class: term(), created_at: term(), enqueued_at: term(), error_backtrace: term(), error_message: term(), failed_at: term(), finished_at: term(), jid: term(), max_retry_count: term(), original_json: term(), queue: term(), retried_at: term(), retry_count: term() } | String.t(), GenServer.server() ) :: {:ok, boolean()} | {:error, Redix.Error.t()}
Moves the job from the sorted set back to its original queue.
It returns {:ok, true}
if the job was found and requeued.
Otherwise it returns {:ok, false}
.
An error tuple may be returned if Redis failed.