summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2018-12-07 16:11:44 +0000
committerRobert Speicher <rspeicher@gmail.com>2018-12-07 16:11:44 +0000
commit498e34c6a4c990ae7d90b2d09cf4e73b9f228e13 (patch)
tree358831135a05199c18bb8482bef8814f98aa6e5b /app
parente17ccef5cadd7b8962a10bb43b1332658a54bd96 (diff)
parentd5094e7c0aa8b41114b77e57f29d4002b8c00278 (diff)
downloadgitlab-ce-498e34c6a4c990ae7d90b2d09cf4e73b9f228e13.tar.gz
Merge branch 'dm-remove-prune-web-hook-logs-worker' into 'master'
Remove RemoveOldWebHookLogsWorker Closes #52592 See merge request gitlab-org/gitlab-ce!23628
Diffstat (limited to 'app')
-rw-r--r--app/workers/all_queues.yml1
-rw-r--r--app/workers/remove_old_web_hook_logs_worker.rb14
2 files changed, 0 insertions, 15 deletions
diff --git a/app/workers/all_queues.yml b/app/workers/all_queues.yml
index d9fd395c5ec..672c77539af 100644
--- a/app/workers/all_queues.yml
+++ b/app/workers/all_queues.yml
@@ -10,7 +10,6 @@
- cronjob:prune_old_events
- cronjob:remove_expired_group_links
- cronjob:remove_expired_members
-- cronjob:remove_old_web_hook_logs
- cronjob:remove_unreferenced_lfs_objects
- cronjob:repository_archive_cache
- cronjob:repository_check_dispatch
diff --git a/app/workers/remove_old_web_hook_logs_worker.rb b/app/workers/remove_old_web_hook_logs_worker.rb
deleted file mode 100644
index 0f486f8991d..00000000000
--- a/app/workers/remove_old_web_hook_logs_worker.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveOldWebHookLogsWorker
- include ApplicationWorker
- include CronjobQueue
-
- WEB_HOOK_LOG_LIFETIME = 2.days
-
- # rubocop: disable DestroyAll
- def perform
- WebHookLog.destroy_all(['created_at < ?', Time.now - WEB_HOOK_LOG_LIFETIME])
- end
- # rubocop: enable DestroyAll
-end