84
// nolint:exhaustive // there's a default clause
85
switch f.partition.TaskType() {
87
>
_, err = f.client.AddWorkflowTask(
88
>
ctx, &matchingservice.AddWorkflowTaskRequest{
89
>
NamespaceId: task.event.Data.GetNamespaceId(),
90
>
Execution: task.workflowExecution(),
91
>
TaskQueue: &taskqueuepb.TaskQueue{
92
>
Name: target.RpcName(),
93
>
Kind: f.partition.Kind(),
94
>
},
95
>
ScheduledEventId: task.event.Data.GetScheduledEventId(),
96
>
Clock: task.event.Data.GetClock(),
97
>
ScheduleToStartTimeout: expirationDuration,
98
>
ForwardInfo: f.getForwardInfo(task),
99
>
VersionDirective: task.event.Data.GetVersionDirective(),
100
>
Stamp: task.event.Data.GetStamp(),
101
>
Priority: task.event.Data.GetPriority(),
102
>
},
103
>
)
104
case enumspb.TASK_QUEUE_TYPE_ACTIVITY:
105
_, err = f.client.AddActivityTask(