213
// Continue as new to prevent workflow history size explosion.
214
215
>
params.PreviousSuccessCount = result.SuccessCount
workflow.go
216
>
params.PreviousErrorCount = result.ErrorCount
217
>
params.ContinueAsNewCount++
218
>
params.NextPageToken = nextPageToken
219
>
220
>
logger.Info("There are more workflows to delete. Continuing workflow as new.", tag.DeletedExecutionsCount(result.SuccessCount), tag.DeletedExecutionsErrorCount(result.ErrorCount), tag.Counter(params.ContinueAsNewCount))
221
>
return result, workflow.NewContinueAsNewError(ctx, DeleteExecutionsWorkflow, params)
222
}