CargueroTaskBunny.Config (CargueroCargueroTaskBunny v0.0.6) View Source
Handles CargueroTaskBunny 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 the max overflow for the publisher poolboy. 0 by default
Returns the publisher pool size for poolboy. 15 by default
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
Specs
auto_start?() :: boolean()
Returns true if auto start is enabled.
Specs
Returns connect options for the host.
Specs
disable_auto_start() :: :ok
Disable auto start manually.
Specs
disable_worker?() :: boolean()
Returns true if worker is disabled.
Specs
failure_backend() :: [atom()]
Returns the list of failure backends.
It returns CargueroTaskBunny.FailureBackend.Logger
by default.
Specs
Returns configuration for the host.
Examples
iex> host_config(:default)
[connection_options: "amqp://localhost?heartbeat=30"]
Specs
hosts() :: [atom()]
Returns list of hosts.
Specs
publisher_max_overflow() :: integer()
Returns the max overflow for the publisher poolboy. 0 by default
Specs
publisher_pool_size() :: integer()
Returns the publisher pool size for poolboy. 15 by default
Specs
Returns a queue for the given job.
Specs
queues() :: [keyword()]
Returns list of queues.
Specs
workers() :: [keyword()]
Transforms queue configuration into list of workers for the application to run.