Merge pull request #473 from alexbarcelo/asset-precompile-fix

Avoid Redis connectivity on initialization
This commit is contained in:
Evgenii Burmakin 2024-12-02 14:09:49 +01:00 committed by GitHub
commit 1fd4ade537
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,4 +25,6 @@ Sidekiq.configure_client do |config|
config.redis = { url: ENV['REDIS_URL'] }
end
Sidekiq::Queue['reverse_geocoding'].limit = 1 if PHOTON_API_HOST == 'photon.komoot.io'
if (defined?(Rails::Server) || Sidekiq.server?) && PHOTON_API_HOST == 'photon.komoot.io'
Sidekiq::Queue['reverse_geocoding'].limit = 1
end