mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
fix puma warnings
This commit is contained in:
1 parent
7b5494468f
commit
c7659563b8
2 files changed
+6
-6
No files matched your search
@@ -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