this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix gormstore retry logic (#521)

authored by

Jaz and committed by
GitHub
cf33c689 630059eb

+1 -1
+1 -1
backfill/gormstore.go
··· 67 67 func (s *Gormstore) loadJobs(ctx context.Context, limit int) error { 68 68 var todo []string 69 69 if err := s.db.Model(GormDBJob{}).Limit(limit).Select("repo"). 70 - Where("state = 'enqueued' OR (state = 'failed' AND (retry_after = NULL OR retry_after < ?))", time.Now()).Scan(&todo).Error; err != nil { 70 + Where("state = 'enqueued' OR (state like 'failed%' AND (retry_after = NULL OR retry_after < ?))", time.Now()).Scan(&todo).Error; err != nil { 71 71 return err 72 72 } 73 73