correct unicorn sidekiq messaging

This commit is contained in:
Sam 2017-10-23 17:12:25 +11:00
parent 15932f391e
commit 220a961898

View File

@ -113,12 +113,14 @@ before_fork do |server, worker|
puts "Starting up #{sidekiqs} supervised sidekiqs"
require 'demon/sidekiq'
DiscourseEvent.trigger(:sidekiq_fork_started)
if @stats_socket_dir
Demon::Sidekiq.after_fork do
start_stats_socket(server)
DiscourseEvent.trigger(:sidekiq_fork_started)
end
else
Demon::Sidekiq.after_fork do
DiscourseEvent.trigger(:sidekiq_fork_started)
end
end
Demon::Sidekiq.start(sidekiqs)