-
- Downloads
Only require sidekiq-limit_fetch when enabled in settings
This gem allows Sidekiq jobs to be throttled. Unfortunately, it has a side-effect: when we haven't enabled job throttling, it will still hit Redis a lot (and miss, because nothing is configured). As this setting already required a restart, ensure that the library is only required when it's enabled.
Showing
- Gemfile 1 addition, 1 deletionGemfile
- app/views/admin/application_settings/_form.html.haml 3 additions, 1 deletionapp/views/admin/application_settings/_form.html.haml
- changelogs/unreleased/only-limit-fetch-when-requested.yml 5 additions, 0 deletionschangelogs/unreleased/only-limit-fetch-when-requested.yml
- lib/gitlab/sidekiq_throttler.rb 2 additions, 0 deletionslib/gitlab/sidekiq_throttler.rb
- spec/lib/gitlab/sidekiq_throttler_spec.rb 33 additions, 17 deletionsspec/lib/gitlab/sidekiq_throttler_spec.rb
Loading
| Loading
| @@ -152,7 +152,7 @@ gem 'acts-as-taggable-on', '~> 4.0' |
gem 'sidekiq', '~> 5.0' | ||
gem 'sidekiq-cron', '~> 0.6.0' | ||
gem 'redis-namespace', '~> 1.5.2' | ||
gem 'sidekiq-limit_fetch', '~> 3.4' | ||
gem 'sidekiq-limit_fetch', '~> 3.4', require: false | ||
# Cron Parser | ||
gem 'rufus-scheduler', '~> 3.4' | ||
Loading
| Loading
|
Please register or sign in to comment