240
return nil, consts.ErrQueryEnteredInvalidState
241
}
242
>
case workflow.QueryCompletionTypeUnblocked:
api.go
243
>
msResp, err := api.GetMutableState(ctx, shardContext, workflowKey, workflowConsistencyChecker)
244
>
if err != nil {
245
return nil, err
246
}
247
>
req.Execution.RunId = msResp.Execution.RunId
api.go
248
>
return queryDirectlyThroughMatching(
249
>
ctx,
250
>
msResp,
251
>
nsEntry,
252
>
request.GetNamespaceId(),
253
>
req,
254
>
shardContext,
255
>
workflowConsistencyChecker,
256
>
rawMatchingClient,
257
>
matchingClient,
258
>
scope,
259
>
priority,
260
>
)
261
case workflow.QueryCompletionTypeFailed:
262
err = completionState.Err