Commit b0097199 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'enable_trace_sidekiq_development' into 'master'

Turn on backtrace for sidekiq in development

See merge request gitlab-org/gitlab-ce!25515
parents db45c934 f09399fc
......@@ -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
enable_json_logs = Gitlab.config.sidekiq.log_format == 'json'
Sidekiq.configure_server do |config|
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment