Verk v0.13.4 Verk.Job

The Job struct

Summary

Functions

Decode the JSON payload storing the original json as part of the struct

Decode the JSON payload storing the original json as part of the struct, raising if there is an error

Functions

decode(payload)

Specs

decode(binary) ::
  {:ok, %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}} |
  {:error, Poison.Error.t}

Decode the JSON payload storing the original json as part of the struct.

decode!(payload)

Specs

decode!(binary) :: %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}

Decode the JSON payload storing the original json as part of the struct, raising if there is an error

default_max_retry_count()