Verk.Worker (Verk v1.7.2) View Source
Worker executes the job, messages the manager when it's done and shutdowns.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Get the current job that the worker is running.
Ask the worker to perform the job.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
current_job() :: %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() }
Get the current job that the worker is running.
Specs
perform_async(pid(), pid(), %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() }) :: :ok
Ask the worker to perform the job.