Whenever I call a Sidekiq worker I'm getting the following error:
Redis::InheritedError (Tried to use a connection from a child process without reconnecting. You need to reconnect to Redis after forking.)
I'm hosting on Heroku and using Redis Cloud which I'm connecting to with connection_pool gem.
Here's the redis.rb:
if Rails.configuration.redis_uri.present?
$redis = ConnectionPool.new(:size => 8, :timeout => 30) do
Redis.new(:url => Rails.configuration.redis_uri)
end
end
but don't think sidekiq is even using this as it's getting the Redis url directly from the REDIS_URL environment variable.