Verk v0.13.4 Verk.Worker

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

Summary

Functions

Get the current job that the worker is running

Ask the worker to perform the job

Functions

current_job()

Specs

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

perform_async(worker, manager, job)

Specs

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