Skip to content

Commit

Permalink
Process ops for repos that failed to backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Jan 10, 2024
1 parent c207fa0 commit 51f68ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backfill/gormstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ func (j *Gormjob) BufferOps(ctx context.Context, since *string, rev string, ops
case StateInProgress, StateEnqueued:
// keep going and buffer the op
default:
if strings.HasPrefix(j.state, "failed") {
// Process immediately for now
return true, nil
}
return false, fmt.Errorf("invalid job state: %q", j.state)
}

Expand Down

0 comments on commit 51f68ea

Please sign in to comment.