class SidekiqUniqueJobs::Lock::UntilExecuted
@author Mikael Henriksson <mikael@zoolutions.se>
- Unlocks after yielding to the worker’s perform method
- Locks on perform_in or perform_async
Locks jobs until the server is done executing the job
def execute
- Yield: - to the worker class perform method
def execute lock do yield unlock_with_callback callback_safely item[JID] end end