Class: SidekiqUniqueJobs::Middleware::Server

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::ServerMiddleware, SidekiqUniqueJobs::Middleware
Defined in:
lib/sidekiq_unique_jobs/middleware/server.rb

Overview

The unique sidekiq middleware for the server processor

Author:

Instance Attribute Summary

Attributes included from SidekiqUniqueJobs::Middleware

#item

Instance Method Summary collapse

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

Runs the server middleware (used from Sidekiq::Processor#process)



26
27
28
# File 'lib/sidekiq_unique_jobs/middleware/server.rb', line 26

def call(*, &block)
  lock_instance.execute(&block)
end