Sha256: e970c382209b67bbc8073b6ddf009b5334b5255cefc2c2215d32d23b4bc437a6

Contents?: true

Size: 583 Bytes

Versions: 3

Compression:

Stored size: 583 Bytes

Contents

require 'sidekiq_unique_jobs/middleware/server/unique_jobs'

module SidekiqUniqueJobs
  module Middleware
    module Client
      module Strategies
        class TestingInline < Unique
          def self.elegible?
            SidekiqUniqueJobs.config.inline_testing_enabled?
          end

          def review
            _middleware.call(worker_class.new, item, queue, redis_pool) do
              super
            end
          end

          def _middleware
            SidekiqUniqueJobs::Middleware::Server::UniqueJobs.new
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-3.0.14 lib/sidekiq_unique_jobs/middleware/client/strategies/testing_inline.rb
sidekiq-unique-jobs-3.0.13 lib/sidekiq_unique_jobs/middleware/client/strategies/testing_inline.rb
sidekiq-unique-jobs-3.0.12 lib/sidekiq_unique_jobs/middleware/client/strategies/testing_inline.rb