We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8744877 commit 29f297cCopy full SHA for 29f297c
lib/solid_queue/processes/registrable.rb
@@ -53,7 +53,7 @@ def stop_heartbeat
53
end
54
55
def heartbeat
56
- process.reload.heartbeat
+ process.with_lock(&:heartbeat)
57
rescue ActiveRecord::RecordNotFound
58
self.process = nil
59
wake_up
0 commit comments