Class: SidekiqUniqueJobs::Middleware::Client

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::ClientMiddleware, SidekiqUniqueJobs::Middleware, Reflectable
Defined in:
lib/sidekiq_unique_jobs/middleware/client.rb

Overview

The unique sidekiq middleware for the client push

Author:

Instance Attribute Summary

Attributes included from SidekiqUniqueJobs::Middleware

#item

Instance Method Summary collapse

Methods included from Reflectable

#reflect

Methods included from JSON

dump_json, load_json, safe_load_json

Methods included from OptionsWithFallback

included, #lock_class, #lock_instance, #lock_type, #locks, #options, #unique_disabled?, #unique_enabled?

Methods included from Logging::Middleware

included, #logging_context

Methods included from Logging

#build_message, included, #log_debug, #log_error, #log_fatal, #log_info, #log_warn, #logger, #logging_context, #with_configured_loggers_context, #with_logging_context

Instance Method Details

#call { ... } ⇒ Object

Calls this client middleware

Used from Sidekiq.process_single


28
29
30
# File 'lib/sidekiq_unique_jobs/middleware/client.rb', line 28

def call(*, &block)
  lock(&block)
end