fix puma warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user