Skip to content

Commit

Permalink
Fix task attempt metrics in priority task processor (#3428)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt authored Aug 4, 2020
1 parent 01d2d1a commit d096317
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/history/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ func (t *taskBase) HandleErr(

t.attempt++
if t.attempt > t.maxRetryCount() {
t.scope.RecordTimer(metrics.TaskAttemptTimer, time.Duration(t.attempt))
t.logger.Error("Critical error processing task, retrying.",
tag.Error(err), tag.OperationCritical, tag.TaskType(t.GetTaskType()))
}
Expand Down

0 comments on commit d096317

Please sign in to comment.