369
oldExclusiveDeletionHighWatermark tasks.Key,
370
newExclusiveDeletionHighWatermark tasks.Key,
372
>
if p.category.Type() == tasks.CategoryTypeScheduled {
373
>
oldExclusiveDeletionHighWatermark.TaskID = 0
374
>
newExclusiveDeletionHighWatermark.TaskID = 0
375
>
}
376
378
>
defer cancel()
379
>
380
>
if err := p.shard.GetExecutionManager().RangeCompleteHistoryTasks(ctx, &persistence.RangeCompleteHistoryTasksRequest{
381
>
ShardID: p.shard.GetShardID(),
382
>
TaskCategory: p.category,
383
>
InclusiveMinTaskKey: oldExclusiveDeletionHighWatermark,
384
>
ExclusiveMaxTaskKey: newExclusiveDeletionHighWatermark,
385
>
}); err != nil {
386
p.logger.Error("Error range completing queue task", tag.Error(err))
387
return err
388
}
390
}
391