mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
In Sidekiq v7, this field is not recognised and gets passed through to Redis, which also doesn't recognise it and crashes. It was added to avoid filling up Redis on dev, but it's actually a Sidekiq pro option which needs to be defined on jobs, so I guess it never worked.
15 lines
338 B
Ruby
15 lines
338 B
Ruby
# Redis connection configuration for Sidekiq
|
|
|
|
redis_connection_settings = {
|
|
url: ENV.fetch("OFN_REDIS_JOBS_URL", "redis://localhost:6381/0"),
|
|
network_timeout: 5,
|
|
}
|
|
|
|
Sidekiq.configure_server do |config|
|
|
config.redis = redis_connection_settings
|
|
end
|
|
|
|
Sidekiq.configure_client do |config|
|
|
config.redis = redis_connection_settings
|
|
end
|