Module: SolidQueue::Job::ConcurrencyControls
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/solid_queue/job/concurrency_controls.rb
Instance Method Summary collapse
Instance Method Details
#blocked? ⇒ Boolean
32 33 34 |
# File 'app/models/solid_queue/job/concurrency_controls.rb', line 32 def blocked? blocked_execution.present? end |
#concurrency_limited? ⇒ Boolean
28 29 30 |
# File 'app/models/solid_queue/job/concurrency_controls.rb', line 28 def concurrency_limited? concurrency_key.present? end |
#unblock_next_blocked_job ⇒ Object
22 23 24 25 26 |
# File 'app/models/solid_queue/job/concurrency_controls.rb', line 22 def unblock_next_blocked_job if release_concurrency_lock release_next_blocked_job end end |