class SidekiqUniqueJobs::Lock::WhileExecutingReject

Locks jobs while executing

Locks from the server process
Unlocks after the server is done processing

See {#lock} for more information about the client. See {#execute} for more information about the server

@author Mikael Henriksson <mikael@mhenrixon.com>

Public Instance Methods

server_strategy() click to toggle source

Overridden with a forced {OnConflict::Reject} strategy @return [OnConflict::Reject] a reject strategy

# File lib/sidekiq_unique_jobs/lock/while_executing_reject.rb, line 16
def server_strategy
  @server_strategy ||= OnConflict.find_strategy(:reject).new(item, redis_pool)
end