TaskBunny v0.0.1-dev.8 TaskBunny.Config

Modules that help you access to TaskBunny config values

Summary

Functions

Returns if auto start is enabled

Returns connect options for the host. It raises an error if the host is not found

Disable auto start manually

Returns list of hosts in config

Returns queue for the given job

Returns queues in config

Returns workers in config

Functions

auto_start?()
auto_start?() :: boolean

Returns if auto start is enabled.

connect_options(host)
connect_options(host :: atom) :: list | String.t

Returns connect options for the host. It raises an error if the host is not found.

disable_auto_start()
disable_auto_start() :: :ok

Disable auto start manually

hosts()
hosts() :: [atom]

Returns list of hosts in config.

queue_for_job(job)
queue_for_job(atom) :: keyword

Returns queue for the given job

queues()
queues() :: [keyword]

Returns queues in config.

workers()
workers() :: [keyword]

Returns workers in config.