Skip to content

Commit

Permalink
Update comments for RequestCancelWorkflow (#2889)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminc committed May 25, 2022
1 parent 89c0ef3 commit 2209c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/frontend/workflowHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1931,8 +1931,8 @@ func (wh *WorkflowHandler) RespondActivityTaskCanceledById(ctx context.Context,

// RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance.
// It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new WorkflowTask
// created for the workflow instance so new commands could be made. It fails with 'EntityNotExistsError' if the workflow is not valid
// anymore due to completion or doesn't exist.
// created for the workflow instance so new commands could be made. It returns success if requested workflow already closed.
// It fails with 'NotFound' if the requested workflow doesn't exist.
func (wh *WorkflowHandler) RequestCancelWorkflowExecution(ctx context.Context, request *workflowservice.RequestCancelWorkflowExecutionRequest) (_ *workflowservice.RequestCancelWorkflowExecutionResponse, retError error) {
defer log.CapturePanic(wh.logger, &retError)

Expand Down

0 comments on commit 2209c4d

Please sign in to comment.