Skip to content

Fix error when reloading code in Sidekiq during development

Stan Hu requested to merge sh-add-scoping-sidekiq-reload into master

Now that Rails 5 supports thread-safe code reload (https://github.com/mperham/sidekiq/issues/2450), we encounter errors when the Rails app code changes in development. We need to add :: in one middleware so that Object.const_missing will be invoked instead of Metrics.const_missing.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54320

Merge request reports