Skip to content

Commit e90b10f

Browse files
committed
Wrap heartbeat task in app executor
1 parent 9d6ad7b commit e90b10f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/solid_queue/processes/registrable.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def registered?
3232
end
3333

3434
def launch_heartbeat
35-
@heartbeat_task = Concurrent::TimerTask.new(execution_interval: SolidQueue.process_heartbeat_interval) { heartbeat }
35+
@heartbeat_task = Concurrent::TimerTask.new(execution_interval: SolidQueue.process_heartbeat_interval) do
36+
wrap_in_app_executor { heartbeat }
37+
end
38+
3639
@heartbeat_task.execute
3740
end
3841

0 commit comments

Comments
 (0)