Skip to content

Commit

Permalink
fix: prevent unsuccessful task from retrying (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist authored Mar 16, 2023
1 parent cbb68c9 commit 9f64f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/indexer/distributed/queue/tasks/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ func (ih *TipSetTaskHandler) HandleIndexTipSetTask(ctx context.Context, t *asynq
return err
}
if !success {
log.Errorw("failed to index task successfully", "taskID", taskID, zap.Inline(p))
return fmt.Errorf("indexing tipset.(height) %s.(%d) taskID: %s", p.TipSet.Key(), p.TipSet.Height(), taskID)
log.Errorw("failed to index task successfully", "taskID", taskID, "height", p.TipSet.Height(), zap.Inline(p))
return nil
}
log.Infow("index tipset success", "taskID", taskID, zap.Inline(p))
return nil
Expand Down

0 comments on commit 9f64f34

Please sign in to comment.