Sha256: 8c6447a8770e357db0ca0970cb1df6b6bbd1c6436f2ccbc2ae7e223b3c95a0a8
Contents?: true
Size: 389 Bytes
Versions: 3
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs class Lock class WhileExecutingRequeue < WhileExecuting def lock true end def execute(callback) locksmith.lock(item[LOCK_TIMEOUT_KEY], raise: true) do yield callback.call end Sidekiq::Client.push(item) unless locksmith.locked? end end end end
Version data entries
3 entries across 3 versions & 1 rubygems