)
if category.Type() == tasks.CategoryTypeScheduled {
// TODO: Truncation here is just to make sure task scheduled time has the same precision as the old logic.
// Remove this truncation once we validate the rest of the code can worker correctly with higher precision.
exclusiveReaderHighWatermark.FireTime = exclusiveReaderHighWatermark.FireTime.
Truncate(common.ScheduledTaskMinPrecision)
}
return exclusiveReaderHighWatermark