summaryrefslogtreecommitdiff
path: root/app/workers/requests_profiles_worker.rb
blob: 106f04d9409a5ee10876819c2abb4eb3e38fd4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class RequestsProfilesWorker # rubocop:disable Scalability/IdempotentWorker
  include ApplicationWorker
  # rubocop:disable Scalability/CronWorkerContext
  # This worker does not perform work scoped to a context
  include CronjobQueue
  # rubocop:enable Scalability/CronWorkerContext

  feature_category :source_code_management

  def perform
    Gitlab::RequestProfiler.remove_all_profiles
  end
end