When running a worker it's not unreasonable to want to restrict the queues from which it'll execute tasks. This provides a setting which allows whitelisting queue names for monitoring:
Mosquito.configure do |settings|
settings.run_from = ["slow_queries"]
end
The setting default is [] which translates to "run everything". I deliberately didn't implement the spec proposed in #2 to use a regex to filter the queue name because it seems like overkill. I can't imagine a scenario where there are enough queues where filtering explicitly is a configuration maintenance burden.
fixes #2
When running a worker it's not unreasonable to want to restrict the queues from which it'll execute tasks. This provides a setting which allows whitelisting queue names for monitoring:
The setting default is
[]
which translates to "run everything". I deliberately didn't implement the spec proposed in #2 to use a regex to filter the queue name because it seems like overkill. I can't imagine a scenario where there are enough queues where filtering explicitly is a configuration maintenance burden.