class ActiveJob::Uniqueness::Strategies::UntilExecuted

Locks the job when it is pushed to the queue. Unlocks the job when the job is finished.

Public Instance Methods

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