Module: FoundersToolkit::Jobs::LockedJob
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/founders_toolkit/jobs/locked_job.rb
Instance Method Summary collapse
Instance Method Details
#extend_lock(ttl) ⇒ Object
45 46 47 48 49 50 |
# File 'lib/founders_toolkit/jobs/locked_job.rb', line 45 def extend_lock(ttl) self.current_lock = locker.lock(lock_key, ttl, extend: current_lock, extend_only_if_locked: true) || current_lock end |