787
}
788
790
>
ctx,
791
>
task,
792
>
weContext,
793
>
targetNamespaceName,
794
>
targetNamespaceID,
795
>
attributes.GetWorkflowExecution().GetWorkflowId(),
796
>
attributes.GetWorkflowExecution().GetRunId(),
797
>
attributes.Control,
798
>
)
799
>
if err != nil {
800
return err
801
}
802
804
>
805
>
// release the weContext lock since we no longer need mutable state and
806
>
// the rest of logic is making RPC call, which takes time.
807
>
release(retError)
808
>
// remove signalRequestedID from target workflow, after Signal detail is removed from source workflow
809
>
_, err = t.historyRawClient.RemoveSignalMutableState(ctx, &historyservice.RemoveSignalMutableStateRequest{
810
>
NamespaceId: targetNamespaceID.String(),
811
>
WorkflowExecution: attributes.GetWorkflowExecution(),
812
>
RequestId: signalRequestID,
813
>
})
814
>
return err
815
}
816