skip to Main Content

Redis – Periodic Jobs not registered in Sidekiq

I have sidkiq configured as following. # config/initializers/sidekiq.rb require 'sidekiq/web' Sidekiq::Web.use(Rack::Protection, origin_whitelist: ['https://mysite']) redis_config = { url: ENV['SIDEKIQ_REDIS_URL'] } Sidekiq.configure_server do |config| config.redis = redis_config config.average_scheduled_poll_interval = 1 config.periodic do |mgr| mgr.register('* 2 * * *', 'MyPeriodicWorker') # 2am daily…

VIEW QUESTION

Redis – Newly created sidekiq worker not found (NameError: uninitialized constant UniqueJobWorkerTest::UniqueJobWorker)

unique_job_worker.rb # -*- encoding : utf-8 -*- require_relative 'logging_helper' class UniqueJobWorker include Sidekiq::Worker include WorkerHelper sidekiq_options retry: false, backtrace: true, queue: :sender, failures: true def perform(worker,campaign_guid, queue) require'pry';binding.pry end end unique_job_worker_test.rb require 'test_helper' require 'mocha/setup' class UniqueJobWorkerTest < ActiveSupport::TestCase def…

VIEW QUESTION
Back To Top
Search