Verk v1.4.0 Verk.Worker
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
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
current_job()
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
Link to this function
perform_async(worker, manager, job)
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