require 'rekiq/version' require 'rekiq/exceptions' unless defined?(Sidekiq) raise Rekiq::SidekiqNotLoaded, 'sidekiq must be required before requiring rekiq' end module Rekiq end require 'rekiq/worker' require 'rekiq/middleware/work_overseer' Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Rekiq::Middleware::WorkOverseer end end