43
matchingClient matchingservice.MatchingServiceClient,
44
routingInfoCache worker_versioning.RoutingInfoCache,
45
>
) (resp *historyservice.RecordActivityTaskStartedResponse, retError error) {
api.go
46
>
var err error
47
>
response := &historyservice.RecordActivityTaskStartedResponse{}
48
>
var rejectCode rejectCode
49
>
50
>
err = api.GetAndUpdateWorkflowWithNew(
51
>
ctx,
52
>
request.Clock,
53
>
definition.NewWorkflowKey(
54
>
request.NamespaceId,
55
>
request.WorkflowExecution.WorkflowId,
56
>
request.WorkflowExecution.RunId,
57
>
),
58
>
func(workflowLease api.WorkflowLease) (resp *api.UpdateWorkflowAction, retErr error) {
59
mutableState := workflowLease.GetMutableState()
60
if !mutableState.IsWorkflowExecutionRunning() {