Class: SolidQueue::Record
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SolidQueue::Record
- Defined in:
- app/models/solid_queue/record.rb
Class Method Summary collapse
Class Method Details
.non_blocking_lock ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/models/solid_queue/record.rb', line 9 def self.non_blocking_lock if SolidQueue.use_skip_locked lock(Arel.sql("FOR UPDATE SKIP LOCKED")) else lock end end |