Verk v1.7.1 Verk.Manager
A process that manages the state of each started queue
Link to this section Summary
Functions
It adds the queue
running with the amount of size
of workers
It always returns the child spec
Returns a specification to start this module under a supervisor.
It removes the queue
It returns :ok
if successful and {:error, :not_found}
otherwise
It returns the status of each queue currently
It returns the status of each queue currently
Link to this section Functions
add(queue, size)
add(atom(), pos_integer()) :: Supervisor.on_start_child()
add(atom(), pos_integer()) :: Supervisor.on_start_child()
It adds the queue
running with the amount of size
of workers
It always returns the child spec
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
pause(queue)
remove(queue)
remove(atom()) :: :ok | {:error, :not_found}
remove(atom()) :: :ok | {:error, :not_found}
It removes the queue
It returns :ok
if successful and {:error, :not_found}
otherwise
resume(queue)
status()
status() :: [{atom(), pos_integer(), atom()}]
status() :: [{atom(), pos_integer(), atom()}]
It returns the status of each queue currently
[{:default, 25, :paused}, {:low_priority, 10, :running}]
status(queue)
status(atom()) :: :running | :paused
status(atom()) :: :running | :paused
It returns the status of each queue currently
[{:default, 25, :paused}, {:low_priority, 10, :running}]