1604
futures := make([]workflow.Future, len(executions))
1605
for i, ex := range executions {
1606
>
req := &schedulespb.WatchWorkflowRequest{
workflow.go
1607
>
// Note: do not send runid here so that we always get the latest one
1608
>
Execution: &commonpb.WorkflowExecution{WorkflowId: ex.WorkflowId},
1609
>
FirstExecutionRunId: ex.RunId,
1610
>
LongPoll: false,
1611
>
}
1612
>
futures[i] = workflow.ExecuteLocalActivity(ctx, s.a.WatchWorkflow, req)
1613
>
}
1614
for i, ex := range executions {
1615
>
s.processWatcherResult(ex.WorkflowId, futures[i], false)
workflow.go
1616
>
}
1617
}
1618