Verk v1.7.0 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

It adds the queue running with the amount of size of workers It always returns the child spec

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

pause(queue)
pause(atom()) :: boolean()

Link to this function

remove(queue)
remove(atom()) :: :ok | {:error, :not_found}

It removes the queue It returns :ok if successful and {:error, :not_found} otherwise

Link to this function

resume(queue)
resume(atom()) :: boolean()

Link to this function

status()
status() :: [{atom(), pos_integer(), atom()}]

It returns the status of each queue currently

[{:default, 25, :paused}, {:low_priority, 10, :running}]

Link to this function

status(queue)
status(atom()) :: :running | :paused

It returns the status of each queue currently

[{:default, 25, :paused}, {:low_priority, 10, :running}]