We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
< ?
1 parent e35fe03 commit 511f1ffCopy full SHA for 511f1ff
app/models/solid_queue/process/prunable.rb
@@ -4,7 +4,7 @@ module SolidQueue::Process::Prunable
4
extend ActiveSupport::Concern
5
6
included do
7
- scope :prunable, -> { where("last_heartbeat_at <= ?", SolidQueue.process_alive_threshold.ago) }
+ scope :prunable, -> { where(last_heartbeat_at: ..SolidQueue.process_alive_threshold.ago) }
8
end
9
10
class_methods do
0 commit comments