Honeydew.Worker behaviour (honeydew v1.5.0) 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

Specs

private() :: term()

Link to this section Callbacks

Specs

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)

Specs

init_failed() :: any()

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