Automatically move the zoekt_repository to failed
What does this MR do and why?
Add a new column retries_left
in the zoekt_repositories
table with the default value of 10
. Created a new event TaskFailedEvent
. Every time a task goes to failed
the event will be published. Created a new worker TaskFailedEventWorker
which is subscribed to this event. So every time a task goes to failed
, this worker will decrement the retries_left
. And will move the zoekt_repository
to failed
when the retries_left
reaches to 0
. Whenever the indexing is successful the retries_left
will be reset to the default value.
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #482920