Class: Sidekiq::Middleware::Server::UniqueJobs
- Inherits:
-
Object
- Object
- Sidekiq::Middleware::Server::UniqueJobs
- Defined in:
- lib/sidekiq/middleware/server/unique_jobs.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/sidekiq/middleware/server/unique_jobs.rb', line 7 def call(*args) yield ensure json = Sidekiq.dump_json(args[1]) hash = Digest::MD5.hexdigest(json) Sidekiq.redis {|conn| conn.del(hash) } end |