Module: CurationConcerns::Lockable
- Extended by:
- ActiveSupport::Concern
- Included in:
- CharacterizeJob, CreateDerivativesJob, Actors::FileSetActor, IngestFileJob
- Defined in:
- app/services/curation_concerns/lockable.rb
Instance Method Summary collapse
Instance Method Details
#acquire_lock_for(lock_key, &block) ⇒ Object
5 6 7 |
# File 'app/services/curation_concerns/lockable.rb', line 5 def acquire_lock_for(lock_key, &block) lock_manager.lock(lock_key, &block) end |
#lock_manager ⇒ Object
9 10 11 12 13 14 |
# File 'app/services/curation_concerns/lockable.rb', line 9 def lock_manager @lock_manager ||= CurationConcerns::LockManager.new( CurationConcerns.config.lock_time_to_live, CurationConcerns.config.lock_retry_count, CurationConcerns.config.lock_retry_delay) end |