Zoekt repositories are stuck in initializing

Summary

We've discovered that some of the repositories are stuck in initializing. Context: gitlab-com/gl-infra/production#19227 (comment 2329463523)

Steps to reproduce

What is the current bug behavior?

What is the expected correct behavior?

Relevant logs and/or screenshots

Possible fixes

It is not clear why it is happening. Currently, we are creating tasks from two places create_tasks and create_bulk_tasks. As a corrective measure deprecate the create_tasks and always use create_bulk_tasks. This way we can narrow down the issue.

Edited by Ravi Kumar