diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 07:08:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 07:08:36 +0000 |
commit | 48aff82709769b098321c738f3444b9bdaa694c6 (patch) | |
tree | e00c7c43e2d9b603a5a6af576b1685e400410dee /lib/gitlab/sidekiq_middleware/worker_context/server.rb | |
parent | 879f5329ee916a948223f8f43d77fba4da6cd028 (diff) | |
download | gitlab-ce-48aff82709769b098321c738f3444b9bdaa694c6.tar.gz |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'lib/gitlab/sidekiq_middleware/worker_context/server.rb')
-rw-r--r-- | lib/gitlab/sidekiq_middleware/worker_context/server.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/sidekiq_middleware/worker_context/server.rb b/lib/gitlab/sidekiq_middleware/worker_context/server.rb index d2d84742c17..2d8fd8002d2 100644 --- a/lib/gitlab/sidekiq_middleware/worker_context/server.rb +++ b/lib/gitlab/sidekiq_middleware/worker_context/server.rb @@ -12,8 +12,10 @@ module Gitlab # This is not a worker we know about, perhaps from a gem return yield unless worker_class.respond_to?(:get_worker_context) - # Use the context defined on the class level as a base context - wrap_in_optional_context(worker_class.get_worker_context, &block) + Gitlab::ApplicationContext.with_context(feature_category: worker_class.get_feature_category.to_s) do + # Use the context defined on the class level as the more specific context + wrap_in_optional_context(worker_class.get_worker_context, &block) + end end end end |