1379
runID string,
1380
clock *clockspb.VectorClock,
1382
>
return t.updateWorkflowExecution(ctx, wfContext, true,
1383
>
func(mutableState historyi.MutableState) error {
1384
>
if !mutableState.IsWorkflowExecutionRunning() {
1385
return consts.ErrWorkflowCompleted
1386
}
1387
1389
>
if !ok || ci.StartedEventId != common.EmptyEventID {
1390
return serviceerror.NewNotFound("Pending child execution not found.")
1391
}
1392
1394
>
&commonpb.WorkflowExecution{
1395
>
WorkflowId: ci.StartedWorkflowId,
1396
>
RunId: runID,
1397
>
},
1398
>
initiatedAttributes.WorkflowType,
1399
>
task.InitiatedEventID,
1400
>
initiatedAttributes.Header,
1401
>
clock,
1402
>
)
1403
>
1404
>
return err
1405
})
1406
}