584
ctx context.Context,
585
addRequest *matchingservice.AddWorkflowTaskRequest,
587
>
partition, err := tqid.PartitionFromProto(addRequest.TaskQueue, addRequest.NamespaceId, enumspb.TASK_QUEUE_TYPE_WORKFLOW)
588
>
if err != nil {
589
return "", false, err
590
}
592
>
if !softassert.That(e.logger, partition.Kind() == enumspb.TASK_QUEUE_KIND_NORMAL || sticky,
593
>
"AddWorkflowTask called with unexpected partition kind") {
594
return "", false, serviceerror.NewInternal("AddWorkflowTask called with unexpected partition kind")
595
}
596
597
// do not load sticky task queues if not already loaded, which means they have no poller.
598
>
pm, _, err := e.getTaskQueuePartitionManager(ctx, partition, !sticky, loadCauseTask)
matching_engine.go
599
>
if err != nil {
600
return "", false, err
602
return "", false, serviceerrors.NewStickyWorkerUnavailable()
603
}