honeydew v1.2.1 Honeydew.Worker behaviour View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

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 Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function module_init(me \\ self()) View Source
Link to this function run(worker, job, job_monitor) View Source

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