Verk v1.1.1 Verk.Worker

Worker executes the job, messages the manager when it’s done and shutdowns

Link to this section Summary

Functions

Get the current job that the worker is running

Ask the worker to perform the job

Link to this section Functions

Link to this function current_job()
current_job() :: %Verk.Job{args: term, class: 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}

Get the current job that the worker is running

Link to this function perform_async(worker, manager, job)
perform_async(pid, pid, %Verk.Job{args: term, class: 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}) :: :ok

Ask the worker to perform the job