Class: SidekiqUniqueJobs::Lock::UntilExecuting
- Defined in:
- lib/sidekiq_unique_jobs/lock/until_executing.rb
Overview
Locks jobs until #execute starts
-
Locks on perform_in or perform_async
-
Unlocks before yielding to the worker’s perform method
Instance Method Summary collapse
-
#execute { ... } ⇒ Object
Executes in the Sidekiq server process.
Methods inherited from BaseLock
#delete, #delete!, #initialize, #lock, #locked?, #unlock
Methods included from SidekiqUniqueJobs::Logging
#log_debug, #log_error, #log_fatal, #log_info, #log_warn, #logger, #logging_context
Constructor Details
This class inherits a constructor from SidekiqUniqueJobs::Lock::BaseLock
Instance Method Details
#execute { ... } ⇒ Object
Executes in the Sidekiq server process
13 14 15 16 |
# File 'lib/sidekiq_unique_jobs/lock/until_executing.rb', line 13 def execute unlock_with_callback yield end |