diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-07-15 18:46:39 +0300 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-07-26 21:06:09 +0300 |
commit | 345cd22f21e4e5a6e340c35e50b43105ee107570 (patch) | |
tree | d1f3916535c9bca94cb9c8fe16559332dcbf762e /app/workers/requests_profiles_worker.rb | |
parent | 0c799be6b6fc0166473c82039ebf662a0558ed8f (diff) |
Profile requests when a header is passed
Diffstat (limited to 'app/workers/requests_profiles_worker.rb')
-rw-r--r-- | app/workers/requests_profiles_worker.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/workers/requests_profiles_worker.rb b/app/workers/requests_profiles_worker.rb new file mode 100644 index 00000000000..9dd228a2483 --- /dev/null +++ b/app/workers/requests_profiles_worker.rb @@ -0,0 +1,9 @@ +class RequestsProfilesWorker + include Sidekiq::Worker + + sidekiq_options queue: :default + + def perform + Gitlab::RequestProfiler.remove_all_profiles + end +end |