Skip to content

No way to wait for WorkflowCancellation #488

Open
@saguziel

Description

@saguziel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions