captain_hook v0.5.0 CaptainHook.Queue

Link to this section Summary

Types

Option values used by the start* functions

Functions

Returns a specification to start this module under a supervisor.

Starts the Queuetopia supervisor process. The :poll_interval can also be given in order to config the polling interval of the scheduler.

Link to this section Types

Specs

option() :: {:poll_interval, non_neg_integer()}

Option values used by the start* functions

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

create_job(queue, action, params, opts \\ [])

Specs

create_job(binary(), binary(), map(), [Queuetopia.Jobs.Job.option()]) ::
  {:error, Ecto.Changeset.t()} | {:ok, Queuetopia.Jobs.Job.t()}

Callback implementation for Queuetopia.create_job/4.

Link to this function

start_link(opts \\ [])

Specs

start_link([option()]) :: Supervisor.on_start()

Starts the Queuetopia supervisor process. The :poll_interval can also be given in order to config the polling interval of the scheduler.