174
) error {
175
for cluster, executions := range remoteExecutions {
176
>
_, remoteClient, err := clientBean.GetRemoteFrontendClient(cluster)
workflow.go
177
>
if err != nil {
178
return err
179
}
181
>
ParentExecution: parentExecution,
182
>
Executions: executions,
183
>
}
184
>
signalInput, err := converter.GetDefaultDataConverter().ToPayloads(signalValue)
185
>
if err != nil {
186
return err
187
}
188
189
>
signalCtx, cancel := context.WithTimeout(ctx, signalTimeout)
workflow.go
190
>
_, err = remoteClient.SignalWithStartWorkflowExecution(
191
>
signalCtx,
192
>
&workflowservice.SignalWithStartWorkflowExecutionRequest{
193
>
Namespace: primitives.SystemLocalNamespace,
194
>
RequestId: uuid.NewString(),
195
>
WorkflowId: getWorkflowID(numWorkflows),
196
>
WorkflowType: &commonpb.WorkflowType{
197
>
Name: processorWFTypeName,
198
>
},
199
>
TaskQueue: &taskqueuepb.TaskQueue{
200
>
Name: processorTaskQueueName,
201
>
},
202
>
Input: nil,
203
>
WorkflowTaskTimeout: durationpb.New(workflowTaskTimeout),
204
>
Identity: currentCluster + "-" + string(primitives.WorkerService) + "-service",
205
>
WorkflowIdReusePolicy: workflowIDReusePolicy,
206
>
SignalName: processorChannelName,
207
>
SignalInput: signalInput,
208
>
},
209
>
)
210
>
cancel()
211
>
212
>
if err != nil {
213
return err
214
}