Belt v0.4.0 Belt.Job.Supervisor

Supervisor for Belt.Job processes.

Summary

Functions

Returns a specification to start this module under a supervisor

Callback invoked to start the supervisor and during hot code upgrades

Starts a new Belt.Job process with the given payload and supervises it. When name is set to :auto or omitted, a name for the process will be generated automatically

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(atom)

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke Supervisor.init/2 at the end of their init callback to return the proper supervision flags.

Callback implementation for Supervisor.init/1.

start_child(payload, name \\ :auto)
start_child(term, term | :auto) ::
  {:ok, Belt.Job.t} |
  {:error, term}

Starts a new Belt.Job process with the given payload and supervises it. When name is set to :auto or omitted, a name for the process will be generated automatically.

start_link()