Skip to content
Snippets Groups Projects
Commit 0f8b7d06 authored by Ash Furrow's avatar Ash Furrow Committed by Eugen
Browse files

Removed Heroku in-process spawning. (#1873)

parent e3325528
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,6 @@ workers ENV.fetch('WEB_CONCURRENCY') { 2 }
preload_app!
on_worker_boot do
if ENV['HEROKU'] # Spawn the workers from Puma, to only use one dyno
@sidekiq_pid ||= spawn('bundle exec sidekiq -q default -q push -q pull -q mailers ')
end
ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment