Poolder.Scheduler behaviour (Poolder v0.1.10)

View Source

Summary

Callbacks

handle_error(job, attempt, error, state)

@callback handle_error(
  job :: term(),
  attempt :: integer(),
  error :: any(),
  state :: any()
) ::
  {:retry, new_state :: any()} | {:backoff, delay :: integer()} | :halt | any()

handle_hibernate(state)

@callback handle_hibernate(state :: any()) :: any()