Turn on backtrace for sidekiq in development

This enables easier debugging in GDK
This commit is contained in:
Thong Kuah 2019-02-25 17:16:02 +13:00
parent ecaa08cc28
commit f09399fc52
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ queues_config_hash[:namespace] = Gitlab::Redis::Queues::SIDEKIQ_NAMESPACE
# Default is to retry 25 times with exponential backoff. That's too much.
Sidekiq.default_worker_options = { retry: 3 }
if Rails.env.development?
Sidekiq.default_worker_options[:backtrace] = true
end
enable_json_logs = Gitlab.config.sidekiq.log_format == 'json'
Sidekiq.configure_server do |config|