Commit 1f3e6ecf authored by Andreas Brandl's avatar Andreas Brandl

Increase reindexing threshold to 10 days

This excludes indexes that have been worked on e.g. the preceding
weekend.

Relates to
https://gitlab.com/gitlab-com/gl-infra/production/-/issues/5069#note_618889225
parent ef4d7992
...@@ -10,7 +10,7 @@ module Gitlab ...@@ -10,7 +10,7 @@ module Gitlab
enum state: { started: 0, finished: 1, failed: 2 } enum state: { started: 0, finished: 1, failed: 2 }
# Amount of time to consider a previous reindexing *recent* # Amount of time to consider a previous reindexing *recent*
RECENT_THRESHOLD = 7.days RECENT_THRESHOLD = 10.days
scope :recent, -> { where(state: :finished).where('action_end > ?', Time.zone.now - RECENT_THRESHOLD) } scope :recent, -> { where(state: :finished).where('action_end > ?', Time.zone.now - RECENT_THRESHOLD) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment