253
return // task queue closing
254
}
255
>
if !softassert.That(tm.logger, res.task != nil, "expected a task from match") {
pri_matcher.go
256
continue
257
}
258
260
>
if !softassert.That(tm.logger, task.forwardCtx == nil, "expected non-forwarded task") ||
261
>
!softassert.That(tm.logger, !task.isSyncMatchTask(), "expected non-sync match task") ||
262
>
!softassert.That(tm.logger, task.source == enumsspb.TASK_SOURCE_DB_BACKLOG, "expected backlog task") {
263
continue
264
}
265
266
>
maybeValid := tm.validator == nil || tm.validator.maybeValidate(task.event.AllocatedTaskInfo, tm.partition.TaskType())
pri_matcher.go
267
>
if !maybeValid {
268
// We found an invalid one, complete it and go back for another immediately.
269
task.finish(taskFinishResult{dropReason: getDroppedTaskExpiryReason(task)})