Class: TrueandcoAnalytics::Workers

Inherits:
Object
  • Object
show all
Defined in:
lib/trueandco_analytics/common/services/workers.rb

Class Method Summary collapse

Class Method Details

.initObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/trueandco_analytics/common/services/workers.rb', line 3

def self.init
  ::Sidekiq.configure_client do |config|
    config.redis = { namespace: TrueandcoAnalytics::Config::Params.sidekiq_configure_namespace,
                     url: TrueandcoAnalytics::Config::Params.sidekiq_configure_client_url }
  end
  ::Sidekiq.configure_server do |config|
    config.redis = { namespace: TrueandcoAnalytics::Config::Params.sidekiq_configure_namespace,
                     url: TrueandcoAnalytics::Config::Params.sidekiq_configure_server_url }
  end
end