cadence-java-client icon indicating copy to clipboard operation
cadence-java-client copied to clipboard

No way to wait for WorkflowCancellation

Open saguziel opened this issue 5 years ago • 0 comments

I have a workflow where I launch a child workflow. I have something roughly like try { } catch (e: CancellationException) { Workflow.newUntypedExternalWorkflowStub(childWorkflowId).cancel() logger.info("Cancel successful") } but even when I confirm it gets to the log line, the child workflow does not actually end up cancelled.

https://github.com/uber/cadence-java-client/blob/6bbb9971de9b89b3b23883cacc6fb178336d7721/src/main/java/com/uber/cadence/internal/replay/DecisionContextImpl.java#L228

Based on this, there is no way to wait.

saguziel avatar May 01 '20 01:05 saguziel