117
118
switch fwdr.partition.TaskType() {
120
>
_, err = fwdr.client.AddWorkflowTask(
121
>
ctx, &matchingservice.AddWorkflowTaskRequest{
122
>
NamespaceId: task.event.Data.GetNamespaceId(),
123
>
Execution: task.workflowExecution(),
124
>
TaskQueue: &taskqueuepb.TaskQueue{
125
>
Name: target.RpcName(),
126
>
Kind: fwdr.partition.Kind(),
127
>
},
128
>
ScheduledEventId: task.event.Data.GetScheduledEventId(),
129
>
Clock: task.event.Data.GetClock(),
130
>
ScheduleToStartTimeout: expirationDuration,
131
>
ForwardInfo: fwdr.getForwardInfo(task),
132
>
VersionDirective: task.event.Data.GetVersionDirective(),
133
>
Stamp: task.event.Data.GetStamp(),
134
>
Priority: task.event.Data.GetPriority(),
135
>
},
136
>
)
137
case enumspb.TASK_QUEUE_TYPE_ACTIVITY:
138
_, err = fwdr.client.AddActivityTask(