Sha256: ba6d12b843f65ac6d0da2b9276fbec96e5229dc247899d7337f3e13ee2728a9b

Contents?: true

Size: 231 Bytes

Versions: 8

Compression:

Stored size: 231 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  module Lock
    class UntilExecuting < UntilExecuted
      def execute(callback, &_block)
        callback.call if unlock(:server)
        yield
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.11 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.10 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.9 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.8 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.7 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.6 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.5 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.4 lib/sidekiq_unique_jobs/lock/until_executing.rb