Skip to content

Commit

Permalink
Add retry opt for asynq (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terryhung authored Mar 16, 2023
1 parent 37a20f6 commit 0b22a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/indexer/distributed/queue/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (r *AsynQ) EnqueueTipSet(ctx context.Context, ts *types.TipSet, indexType i
span.SetAttributes(attribute.String("task_type", task.Type()), attribute.StringSlice("tasks", taskNames), attribute.String("index_type", indexType.String()))
}

_, err = r.c.EnqueueContext(ctx, task, asynq.Queue(indexType.String()))
_, err = r.c.EnqueueContext(ctx, task, asynq.Queue(indexType.String()), asynq.MaxRetry(3))
if err != nil {
return err
}
Expand Down

0 comments on commit 0b22a8b

Please sign in to comment.