Sha256: 166292ca55145397fe56108fc30358d1f4cc24016a7761728f6da119907a18c2
Contents?: true
Size: 536 Bytes
Versions: 3
Compression:
Stored size: 536 Bytes
Contents
require 'sidekiq' require 'sidekiq/web' labels = "<%= app_name.parameterize %>_#{Rails.env}" settings = { url: ENV['REDIS_URL'] || 'redis://localhost:6379/0' } Sidekiq.configure_server { |config| config.redis = settings } Sidekiq.configure_client { |config| config.redis = settings } Sidekiq.options[:labels] << labels # Open this if you have scheduled jobs # schedule_file = 'config/sidekiq_schedule.yml' # if File.exists?(schedule_file) && Sidekiq.server? # Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file) # end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cybele-2.3.2 | templates/sidekiq/sidekiq.rb.erb |
cybele-2.3.1 | templates/sidekiq/sidekiq.rb.erb |
cybele-2.2.0 | templates/sidekiq/sidekiq.rb.erb |