cadence-java-client
cadence-java-client copied to clipboard
No way to wait for WorkflowCancellation
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.