When a repository is failed, zoekt shouldn't process tasks
Summary
During gitlab-com/gl-infra/production#18895 (closed) I noticed that we had failed repositories with a lot of processing tasks.
I believe that we should ignore these tasks if they are associated with a failed repository. Otherwise, we won't be able to finish indexing if we have a backlog of tasks.