Honeydew.FailureMode behaviour (honeydew v1.5.0) View Source

Behaviour module for implementing a job failure mechanism in Honeydew.

Honeydew comes with the following built-in failure modes:

Link to this section Summary

Link to this section Callbacks

Link to this callback

handle_failure(job, reason, args)

View Source

Specs

handle_failure(
  job :: %Honeydew.Job{
    by: term(),
    completed_at: term(),
    delay_secs: term(),
    enqueued_at: term(),
    failure_private: term(),
    from: term(),
    job_monitor: term(),
    private: term(),
    queue: term(),
    result: term(),
    started_at: term(),
    task: term()
  },
  reason :: any(),
  args :: list()
) :: any()

Specs

validate_args!(args :: list()) :: any()