TaskBunny v0.3.2 TaskBunny.Config View Source

Handles TaskBunny configuration.

Link to this section Summary

Functions

Returns true if auto start is enabled

Returns connect options for the host

Disable auto start manually

Returns true if worker is disabled

Returns the list of failure backends

Returns configuration for the host

Returns list of hosts

Returns a queue for the given job

Returns list of queues

Transforms queue configuration into list of workers for the application to run

Link to this section Functions

Link to this function auto_start?() View Source
auto_start?() :: boolean()

Returns true if auto start is enabled.

Link to this function connect_options(host) View Source
connect_options(host :: atom()) :: list() | String.t()

Returns connect options for the host.

Link to this function disable_auto_start() View Source
disable_auto_start() :: :ok

Disable auto start manually.

Link to this function disable_worker?() View Source
disable_worker?() :: boolean()

Returns true if worker is disabled.

Link to this function failure_backend() View Source
failure_backend() :: [atom()]

Returns the list of failure backends.

It returns TaskBunny.FailureBackend.Logger by default.

Link to this function host_config(host) View Source
host_config(atom()) :: keyword() | nil

Returns configuration for the host.

Examples

iex> host_config(:default)
[connection_options: "amqp://localhost?heartbeat=30"]

Returns list of hosts.

Link to this function queue_for_job(job) View Source
queue_for_job(atom()) :: keyword() | nil

Returns a queue for the given job.

Returns list of queues.

Transforms queue configuration into list of workers for the application to run.