mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
avoid unnecessary initialization for certain scenarios
This commit is contained in:
parent
f94ea5516e
commit
e23d4ba382
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue