Sha256: a6e13b14c03bdfebbba690c958be307df7c651b59d64afbd6a47ab577e9adb0f

Contents?: true

Size: 200 Bytes

Versions: 14

Compression:

Stored size: 200 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.1 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-5.0.0 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.18 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.17 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.16 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.15 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.13 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.12 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.11 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.10 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.9 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.8 lib/sidekiq_unique_jobs/lock/until_executing.rb
sidekiq-unique-jobs-4.0.7 lib/sidekiq_unique_jobs/lock/until_executing.rb