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

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

Link to this function add(queue, size)
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

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}]