jondot / sneakers

A fast background processing framework for Ruby and RabbitMQ
https://github.com/jondot/sneakers
MIT License
2.25k stars 332 forks source link

Ability to connect to multiple vhosts #445

Closed middletoni closed 4 years ago

middletoni commented 4 years ago

Is there a way within Sneakers to have 2 configurations, with certain workers processing certain vhosts? My current build uses rails, and has a 'secure' and a 'open' vhost, but I see no way to define within a worker which connection/vhost to use.

michaelklishin commented 4 years ago

This is a not a scenario Sneakers or most such frameworks optimize for. You can override connection options in a custom Rake task or similar.