Sha256: 49a4f6c79fd128bdf839657b0b924719bdbdbd9927b72caecde2fabfbb0e91a8

Contents?: true

Size: 666 Bytes

Versions: 6

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  class Lock
    # 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@zoolutions.se>
    class WhileExecutingReject < WhileExecuting
      # Overridden with a forced {OnConflict::Reject} strategy
      # @return [OnConflict::Reject] a reject strategy
      def strategy
        @strategy ||= OnConflict.find_strategy(:reject).new(item, redis_pool)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.0.0.beta7 lib/sidekiq_unique_jobs/lock/while_executing_reject.rb
sidekiq-unique-jobs-7.0.0.beta6 lib/sidekiq_unique_jobs/lock/while_executing_reject.rb
sidekiq-unique-jobs-7.0.0.beta5 lib/sidekiq_unique_jobs/lock/while_executing_reject.rb
sidekiq-unique-jobs-7.0.0.beta4 lib/sidekiq_unique_jobs/lock/while_executing_reject.rb
sidekiq-unique-jobs-7.0.0.beta3 lib/sidekiq_unique_jobs/lock/while_executing_reject.rb
sidekiq-unique-jobs-7.0.0.beta2 lib/sidekiq_unique_jobs/lock/while_executing_reject.rb