gitlab-org--gitlab-foss/config/initializers_before_autoloader/002_sidekiq.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
336 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Preloads Sidekiq configurations that don't require application references.
#
# It ensures default settings are loaded before any other file references
# (directly or indirectly) Sidekiq workers.
#
require 'sidekiq/web'
if Rails.env.development?
Sidekiq.default_worker_options[:backtrace] = true
end