128
// visibility queue processing is async. Operator can call this api again to delete visibility
129
// record again if this happens.
130
>
if err := persistenceVisibilityMgr.DeleteWorkflowExecution(ctx, &manager.VisibilityDeleteWorkflowExecutionRequest{
api.go
131
>
NamespaceID: namespace.ID(request.GetNamespaceId()),
132
>
WorkflowID: execution.GetWorkflowId(),
133
>
RunID: execution.GetRunId(),
134
>
TaskID: math.MaxInt64,
135
>
StartTime: startTime,
136
>
CloseTime: closeTime,
137
>
IsRetentionDelete: false,
138
>
}); err != nil {
139
return nil, err
140
}
141
142
>
return &historyservice.ForceDeleteWorkflowExecutionResponse{
api.go
143
>
Response: &adminservice.DeleteWorkflowExecutionResponse{
144
>
Warnings: warnings,
145
>
},
146
>
}, nil
147
}