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