Verk v1.4.1 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
Encode the struct to a JSON string, 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, created_at: term, 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, 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}} | {:error, Jason.DecodeError.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, 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}
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()
Encode the struct to a JSON string, raising if there is an error