Class: Sidekiq::Middleware::Server::UniqueJobs

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/middleware/server/unique_jobs.rb

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object


5
6
7
8
9
# File 'lib/sidekiq/middleware/server/unique_jobs.rb', line 5

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