Sha256: d7b321981a93c17e7dbfc08a5ab4d3628fdcece377e66ad4e08a74682bda08a2

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

module Sidekiq
  module Middleware
    module Server
      class UniqueJobs
        def call(*args)
          yield
        ensure
          Sidekiq.redis.del(Digest::MD5.hexdigest(MultiJson.encode(args[1])))
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-0.8.0 lib/sidekiq/middleware/server/unique_jobs.rb
sidekiq-0.7.0 lib/sidekiq/middleware/server/unique_jobs.rb