121
}
122
124
>
historyIterator := h.historyIterator
125
>
var progress progress
126
>
if historyIterator == nil { // will only be set by testing code
127
historyIterator, _ = loadHistoryIterator(ctx, request, h.executionManager, featureCatalog, &progress)
128
}
129
131
>
132
>
for historyIterator.HasNext() {
133
>
part := progress.CurrentPageNumber
134
>
historyBlob, err := historyIterator.Next(ctx)
135
>
if err != nil {
136
if _, isNotFound := err.(*serviceerror.NotFound); isNotFound {
137
// workflow history no longer exists, may due to duplicated archival signal