}
return nil, errBatchAPINotAllowed
}
Namespace: request.GetNamespace(),
WorkflowExecution: &commonpb.WorkflowExecution{
WorkflowId: request.GetJobId(),
},
Reason: request.GetReason(),
Identity: request.GetIdentity(),
}
_, err := wh.TerminateWorkflowExecution(ctx, terminateReq)
if err != nil {
return nil, err
}
}