Verk.Worker
Worker executes the job, messages the manager when it’s done and shutdowns
Summary
current_job() | Get the current job that the worker is running |
perform_async(worker, manager, job) | Ask the worker to perform the job |
Functions
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, original_json: term, queue: term, retried_at: term, retry_count: term}
Get the current job that the worker is running
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, original_json: term, queue: term, retried_at: term, retry_count: term}) :: :ok
Ask the worker to perform the job