Skip to content

Fix search cron worker when indexing is disabled

Dmitry Gruzd requested to merge 408214-fix-bulk-cron-worker into master

What does this MR do and why?

It turns out that we don't have a Gitlab::CurrentSettings.elasticsearch_indexing? check in Elastic::BulkCronWorker, which started to cause issues to customers after we enabled the parallel_bulk_cron_worker feature flag by default. The problem is that we schedule a lot of jobs, but Elasticsearch is unreacheable.

#408214 (closed)

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.

Related to #408214 (closed)

Edited by Dmitry Gruzd

Merge request reports

Loading