Skip to content

Commit 098a004

Browse files
doctomarculescurosa
authored andcommitted
fix(568): moving stop_heartbeat after shutdown so that workers are not considered dead during a graceful shutdown
1 parent 6437617 commit 098a004

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/solid_queue/processes/registrable.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ module Registrable
77
included do
88
after_boot :register, :launch_heartbeat
99

10-
before_shutdown :stop_heartbeat
11-
after_shutdown :deregister
10+
after_shutdown :stop_heartbeat, :deregister
1211
end
1312

1413
def process_id

0 commit comments

Comments
 (0)