Skip to content

Tweak cancellation sample output #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dandavison
Copy link
Contributor

Print exception cause chain in each process:

Heartbeating activity
Heartbeating activity
Got expected exception in workflow. Cause chain is ActivityError -> CancelledError
Executing cleanup activity
Heartbeating activity
Got expected exception in client. Cause chain is WorkflowFailureError -> CancelledError
Got expected exception in activity. Cause chain is CancelledError
2025-07-17T18:37:16.228332Z  WARN temporal_sdk_core::worker::activities: Activity not found on completion. This may happen if the activity has already been cancelled but completed anyway. task_token=TaskToken(CiQwMTk4MThmOC02N2MyLTdlNjMtYmIwMi1iOTU1MGQ0ODU5ZTESHmhlbGxvLWNhbmNlbGxhdGlvbi13b3JrZmxvdy1pZBokMDE5ODE5YWQtMjA2Ny03ZTM4LTk2ODktNjU0NjA4OTQzNjI2IAUoATIBMUIXbmV2ZXJfY29tcGxldGVfYWN0aXZpdHlKCAgBEPKFQBgB) details=Status { code: NotFound, message: "workflow execution already completed", details: b"\x08\x05\x12$workflow execution already completed\x1aB\n@type.googleapis.com/temporal.api.errordetails.v1.NotFoundFailure", metadata: MetadataMap { headers: {"content-type": "application/grpc"} }, source: None }

@dandavison dandavison requested a review from a team as a code owner July 17, 2025 18:37
@dandavison dandavison force-pushed the cancellation-errors branch from 79c7bbe to bf0d936 Compare July 17, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants