class ActiveJob::Uniqueness::Strategies::UntilExecuting

Locks the job when it is pushed to the queue. Unlocks the job before the job is started.

Public Instance Methods

before_perform() click to toggle source
# File lib/active_job/uniqueness/strategies/until_executing.rb, line 11
def before_perform
  unlock(resource: lock_key)
end