Sha256: 6a73ae665c6447b5946bdcb0dcb0b05781f224173858206c99fbcbd433ce2a80

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

module SidekiqUniqueJobs
  module Lock
    class UntilTimeout < UntilExecuted
      def unlock(scope)
        return true if scope.to_sym == :server

        raise ArgumentError, "#{scope} middleware can't #{__method__} #{unique_key}"
      end

      def execute(_callback)
        yield if block_given?
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 lib/sidekiq_unique_jobs/lock/until_timeout.rb
sidekiq-unique-jobs-5.0.1 lib/sidekiq_unique_jobs/lock/until_timeout.rb
sidekiq-unique-jobs-5.0.0 lib/sidekiq_unique_jobs/lock/until_timeout.rb
sidekiq-unique-jobs-4.0.18 lib/sidekiq_unique_jobs/lock/until_timeout.rb
sidekiq-unique-jobs-4.0.17 lib/sidekiq_unique_jobs/lock/until_timeout.rb
sidekiq-unique-jobs-4.0.16 lib/sidekiq_unique_jobs/lock/until_timeout.rb
sidekiq-unique-jobs-4.0.15 lib/sidekiq_unique_jobs/lock/until_timeout.rb