Verk.Job.decode

You're seeing just the function decode, go back to Verk.Job module for more information.

Specs

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.