Repositories to be deleted potentially can be moved to pending
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
We are moving the zoekt_repositories here to pending when there is a failure in processing task. But it should happen only for indexing tasks. Currently, it can happen for the deleting tasks as well. I don't think it will have any impact on the functioning. It will just create unnecessary index_repo tasks for a repository that is meant to be deleted. Eventually, these tasks will fail because Gitaly, can not find the repo which are already deleted.
Steps to reproduce
What is the current bug behavior?
What is the expected correct behavior?
Relevant logs and/or screenshots
Possible fixes
One possible fix could be to not move to pending if the task type is of delete type. To do this, we need to pass the task_type as well in the TaskFailedEventWorker
Edited by 🤖 GitLab Bot 🤖