capistrano-sidekiq icon indicating copy to clipboard operation
capistrano-sidekiq copied to clipboard

Ability to set a different configuration file per role.

Open lustercr opened this issue 6 years ago • 1 comments

Added role as a parameter of the start method, it will try to check if there was a specific config set for the given role using the convention #{role_name}_config otherwise will check the default :sidekiq_config.

it brings the capability to have different roles processing a separated set of queues from the config. i use this so I can isolate heavier queues such exports on their own infrastructure.

I hope this makes sense to be in the core.

lustercr avatar Jun 29 '18 18:06 lustercr

@lustercr , this is broken with monit enabled.

You can test it out as such;

# Capfile
..
..
require 'capistrano/sidekiq'
require 'capistrano/sidekiq/monit'

faizalzakaria avatar Dec 30 '18 15:12 faizalzakaria