Currently we have some license issues. We are working on it.

Commit 0fcd1663 authored by Jonne Haß's avatar Jonne Haß
Browse files

Redis#client.disconnect is Redis#close now

parent cba2b9a3
......@@ -19,13 +19,9 @@ before_fork do |_server, _worker|
ActiveRecord::Base.connection.disconnect! # preloading app in master, so reconnect to DB
# disconnect redis if in use
unless AppConfig.environment.single_process_mode?
Sidekiq.redis {|redis| redis.client.disconnect }
Sidekiq.redis(&:close) unless AppConfig.environment.single_process_mode?
if AppConfig.server.embed_sidekiq_worker?
@sidekiq_pid ||= spawn("bin/bundle exec sidekiq")
@sidekiq_pid ||= spawn("bin/bundle exec sidekiq") if AppConfig.server.embed_sidekiq_worker?
after_fork do |server, worker|
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment