Sha256: 34f680582aa01d8bd61665ff5bd24ba9d682349b0f1c12b6f562cbd58f97d936
Contents?: true
Size: 500 Bytes
Versions: 9
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs class Lock # Locks jobs until {#execute} starts # - Locks on perform_in or perform_async # - Unlocks after yielding to the worker's perform method # # @author Mikael Henriksson <mikael@zoolutions.se> class UntilExecuting < BaseLock # Executes in the Sidekiq server process # @yield to the worker class perform method def execute unlock_with_callback yield end end end end
Version data entries
9 entries across 9 versions & 1 rubygems