Limit the number of retries when failing to index a repo

This commit is contained in:
Max Ignatenko 2024-02-16 15:23:34 +00:00
parent 37ccca4c2f
commit 4626b8b9ca
3 changed files with 8 additions and 3 deletions

View file

@ -27,6 +27,7 @@ type Repo struct {
TombstonedAt time.Time
LastIndexAttempt time.Time
LastError string
FailedAttempts int `gorm:"default:0"`
}
type Record struct {