251
if stderrors.As(err, &appErr) {
252
switch appErr.Type() {
253
>
case errors.ExecutionsStillExistErrType, errors.NoProgressErrType, errors.NotDeletedExecutionsStillExistErrType:
workflow.go
254
>
var notDeletedCount int
255
>
var counterTag tag.ZapTag
256
>
if appErr.HasDetails() {
257
>
_ = appErr.Details(¬DeletedCount)
258
>
counterTag = tag.Counter(notDeletedCount)
259
>
}
260
>
logger.Info("Unable to delete workflow executions.", counterTag)
261
>
// appErr is not retryable. Convert it to retryable for the server to retry.
262
>
return result, temporal.NewApplicationError(appErr.Message(), appErr.Type(), notDeletedCount)
263
}
264
}