Sha256: 60a4a17496ef184e67ecde605dbf6e7d7f9d7eb89ed905cad56e3baab07334fc
Contents?: true
Size: 501 Bytes
Versions: 39
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs class Lock # Locks jobs until {#execute} starts # - Locks on perform_in or perform_async # - Unlocks before 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
39 entries across 39 versions & 1 rubygems