mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:43:16 +08:00
correct unicorn sidekiq messaging
This commit is contained in:
parent
15932f391e
commit
220a961898
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user