1290
currentTime time.Time,
1291
noRetriesLeft bool,
1293
>
attempt := a.LastAttempt.Get(ctx)
1294
>
1295
>
attempt.LastFailureDetails = &activitypb.ActivityAttemptState_LastFailureDetails{
1296
>
Failure: failure,
1297
>
Time: timestamppb.New(currentTime),
1298
>
}
1299
>
attempt.CompleteTime = timestamppb.New(currentTime)
1300
>
1301
>
if noRetriesLeft {
1302
attempt.CurrentRetryInterval = nil
1303
attempt.CurrentRetryIntervalSource = activitypb.ACTIVITY_RETRY_INTERVAL_SOURCE_UNSPECIFIED
1305
attempt.CurrentRetryInterval = durationpb.New(retryInterval)
1306
attempt.CurrentRetryIntervalSource = retryIntervalSource
1307
}
1309
}
1310