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