Check time before starting reindex action
What does this MR do and why?
The rake task that starts the reindexing actions cycles through the databases and starts two reindexing actions for each database. Because this is executed with the cron schedule 12 * * * 0,6
it means that at 23:12
on Sunday it can execute 2 reindexing actions on the main
database and then move on to the CI database, bypassing the weekend checks from the large tables index selection logic.
this happened today: gitlab-com/gl-infra/production#8218 (comment 1231882767)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.