378
(tr.loadedTasks+len(resp.tasks)) <= tr.backlogMgr.config.GetTasksBatchSize() &&
379
!slices.ContainsFunc(resp.tasks, func(t *persistencespb.AllocatedTaskInfo) bool {
380
>
// Because we checked readLevel, we know that getTasksPump can't have beat us to
pri_task_reader.go
381
>
// adding these tasks to outstandingTasks. So they should definitely not be there.
382
>
_, found := tr.outstandingTasks.Get(t.TaskId)
383
>
softassert.That(tr.logger, !found, "newly-written task already present in outstanding tasks")
384
>
return found
385
>
})
386
387
if !canAddDirect {