Sha256: def257cd3f91257d9e1166a0cdb71d5407f3acac017d51e6868d8380941924a2
Contents?: true
Size: 555 Bytes
Versions: 14
Compression:
Stored size: 555 Bytes
Contents
require 'sidekiq/scheduler' # Configure Sidekiq Redis connection to use the '<%= @config.app_name %>' namespace redis_config = { url: "redis://#{ENV.fetch('REDIS_SERVER')}", namespace: "<%= @config.app_name %>:#{Rails.env}:sidekiq" } Sidekiq.configure_server do |config| config.redis = redis_config #config.on(:startup) do # Sidekiq.schedule = YAML.load_file(File.expand_path("../../../config/scheduler.yml",__FILE__)) # Sidekiq::Scheduler.reload_schedule! #end end Sidekiq.configure_client do |config| config.redis = redis_config end
Version data entries
14 entries across 14 versions & 1 rubygems