272
}
273
274
>
nsName := namespaceEntry.Name().String()
api.go
275
>
276
>
// When pagination is enabled, buffer intermediate pages and merge them into the final page
277
>
// before continuing through the normal workflow task completion path.
278
>
paginationResp, mergedCommands, err := handler.applyTaskCompletionPagination(weContext, token, request, nsName)
279
>
// In case of a buffer overflow fall through and fail the workflow task below
280
>
paginationOverflow := errors.Is(err, workflow.ErrTaskCompletionBufferSizeExceeded)
281
>
if !paginationOverflow && (paginationResp != nil || err != nil) {
282
releaseLeaseWithError = false
283
return paginationResp, err