honeydew v1.4.0 Honeydew.Worker behaviour View Source

A Honeydew Worker, how you specify your jobs.

Link to this section Summary

Callbacks

Invoked when the worker starts up for the first time

Invoked when init/1 returns anything other than {:ok, state} or raises an error

Link to this section Types

Link to this type private() View Source
private() :: term()

Link to this section Callbacks

Link to this callback init(args) View Source (optional)
init(args :: term()) :: {:ok, state :: private()}

Invoked when the worker starts up for the first time.

Link to this callback init_failed() View Source (optional)
init_failed() :: any()

Invoked when init/1 returns anything other than {:ok, state} or raises an error