Class: SidekiqUniqueJobs::Middleware::Server
- Inherits:
-
Object
- Object
- SidekiqUniqueJobs::Middleware::Server
- Includes:
- Sidekiq::ServerMiddleware, SidekiqUniqueJobs::Middleware
- Defined in:
- lib/sidekiq_unique_jobs/middleware/server.rb
Overview
The unique sidekiq middleware for the server processor
Instance Attribute Summary
Attributes included from SidekiqUniqueJobs::Middleware
Instance Method Summary collapse
-
#call { ... } ⇒ Object
Runs the server middleware (used from Sidekiq::Processor#process).
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
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 |