Verk v1.2.3 Verk.Job

The Job struct

Link to this section 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

Link to this section Types

Link to this type t()
t() :: %Verk.Job{args: term, class: String.t | atom, enqueued_at: term, error_backtrace: String.t, error_message: String.t, failed_at: DateTime.t, finished_at: DateTime.t, jid: String.t, max_retry_count: term, original_json: term, queue: String.t, retried_at: DateTime.t, retry_count: non_neg_integer}

Link to this section Functions

Link to this function decode(payload)
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.

Link to this function decode!(payload)
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

Link to this function default_max_retry_count()