fix puma warnings

This commit is contained in:
Pete Matsyburka committed 2026-01-26 20:23:11 +02:00
1 parent 7b5494468f
commit c7659563b8
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -14,14 +14,14 @@ Puma::Plugin.create do
end
def start(launcher)
launcher.events.on_booted do
launcher.events.after_booted do
next if Puma.stats_hash[:workers].to_i != 0
start_sidekiq!
end
launcher.events.on_stopped { Thread.new { @sidekiq&.stop }.join }
launcher.events.on_restart { Thread.new { @sidekiq&.stop }.join }
launcher.events.after_stopped { Thread.new { @sidekiq&.stop }.join }
launcher.events.before_restart { Thread.new { @sidekiq&.stop }.join }
end
def fire_event(config, event)