Skip to content

Commit d9fa282

Browse files
Handle workflow already completed in heartbeat (#1086)
1 parent 00508cd commit d9fa282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/internal_task_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ func (i *cadenceInvoker) internalHeartBeat(details []byte) (bool, error) {
17441744
i.cancelHandler()
17451745
isActivityCancelled = true
17461746

1747-
case *s.EntityNotExistsError, *s.DomainNotActiveError:
1747+
case *s.EntityNotExistsError, *s.WorkflowExecutionAlreadyCompletedError, *s.DomainNotActiveError:
17481748
// We will pass these through as cancellation for now but something we can change
17491749
// later when we have setter on cancel handler.
17501750
i.cancelHandler()

0 commit comments

Comments
 (0)