Jumbo v1.0.2 Jumbo.FailedJob

Structure representing a single job that has failed and is waiting for retry.

It has the following fields:

  • id: String containing job unique ID in the UUIDv4 format,
  • module: module that is being called when running the job,
  • args: list of arguments that are applied to module’s perform function when running the job,
  • failure_count: integer telling how many times this job has failed,
  • reason: atom telling why job has failed, if it is :throw it means that some term was thrown, :raise means that exception was raised, :killed means that process has been killed,
  • info: for reason set to :throw it is an atom that was thrown, for reason set to :raise it is an exception that was raised, nil otherwise,
  • stacktrace: for reason set to :throw or :raise it will contain a list, of tuples with stack trace,
  • failed_at: time when job was moved to failing state, in format returned by :erlang.monotonic_time/0.

Summary

Types

info_t()
info_t() :: any
reason_t()
reason_t() :: :throw | :raise | :killed
stacktrace_t()
stacktrace_t() :: [{tuple}]
t()
t() :: %Jumbo.FailedJob{args: [] | [any], failed_at: integer, failure_count: pos_integer, id: Jumbo.JobId.t, info: info_t | nil, module: module, reason: reason_t, stacktrace: stacktrace_t | nil}