5 6 7 8 9 10 11
# File 'lib/sidekiq/middleware/server/unique_jobs.rb', line 5 def call(*args) yield ensure json = MultiJson.encode(args[1]) hash = Digest::MD5.hexdigest(json) Sidekiq.redis {|conn| conn.del(hash) } end