summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorJeremy Watson <jwatson@gitlab.com>2018-10-05 13:22:58 +0000
committerJeremy Watson <jwatson@gitlab.com>2018-10-05 13:22:58 +0000
commit8f6a1f143de2395467086f15727f54ee773f2d73 (patch)
tree5a7551890f4895a55d87ca8842b57719fae2db09 /app/workers
parent33c663ae1d2d46fd451cdbd21f2c5f18b21fa632 (diff)
downloadgitlab-ce-8f6a1f143de2395467086f15727f54ee773f2d73.tar.gz
prune older than 2 years instead of 12 months
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/prune_old_events_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/prune_old_events_worker.rb b/app/workers/prune_old_events_worker.rb
index d44ad0d8030..958d613b859 100644
--- a/app/workers/prune_old_events_worker.rb
+++ b/app/workers/prune_old_events_worker.rb
@@ -13,7 +13,7 @@ class PruneOldEventsWorker
'(id IN (SELECT id FROM (?) ids_to_remove))',
Event.unscoped.where(
'created_at < ?',
- (12.months + 1.day).ago)
+ (2.years + 1.day).ago)
.select(:id)
.limit(10_000))
.delete_all