Skip to content

Do not delay indexing for dev envs

Terri Chu requested to merge tchu-speed-up-dev-indexing-rake-task into master

What does this MR do and why?

This MR removes the delay for requeuing the worker when indexing for dev environments only. 2 minutes is entirely too long. The delay was introduced to avoid an issue with recreating indices in self managed instances with many updates (and as a result index operations). I feel this is safe because it's only changing the behavior for development.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

N/A

How to set up and validate locally

  1. enable elasticsearch for gdk
  2. run the rake task gitlab:elastic:index
  3. verify it starts indexing pretty quickly (on master it could take up to 5 minutes with the delays)
Edited by Terri Chu

Merge request reports

Loading