135
},
136
)
138
>
_, err = fwdr.client.AddActivityTask(
139
>
ctx, &matchingservice.AddActivityTaskRequest{
140
>
NamespaceId: task.event.Data.GetNamespaceId(),
141
>
Execution: task.workflowExecution(),
142
>
TaskQueue: &taskqueuepb.TaskQueue{
143
>
Name: target.RpcName(),
144
>
Kind: fwdr.partition.Kind(),
145
>
},
146
>
ScheduledEventId: task.event.Data.GetScheduledEventId(),
147
>
Clock: task.event.Data.GetClock(),
148
>
ScheduleToStartTimeout: expirationDuration,
149
>
ForwardInfo: fwdr.getForwardInfo(task),
150
>
VersionDirective: task.event.Data.GetVersionDirective(),
151
>
Stamp: task.event.Data.GetStamp(),
152
>
Priority: task.event.Data.GetPriority(),
153
>
ComponentRef: task.event.Data.GetComponentRef(),
154
>
},
155
>
)
156
default:
157
return errInvalidTaskQueueType