Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidporter-id-au committed Jun 26, 2024
1 parent 40b0f99 commit e935228
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion service/history/task/transfer_active_task_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,14 @@ func (t *transferActiveTaskExecutor) processParentClosePolicy(
parentExecution,
childInfo,
); err != nil {
if _, ok := err.(*types.EntityNotExistsError); !ok {

switch err.(type) {
case *types.EntityNotExistsError,
*types.WorkflowExecutionAlreadyCompletedError,
*types.CancellationAlreadyRequestedError:
// expected error, no-op
break
default:
scope.IncCounter(metrics.ParentClosePolicyProcessorFailures)
return err
}
Expand Down

0 comments on commit e935228

Please sign in to comment.