ActivityCancellationType
: int
in package
Defines behaviour of the parent workflow when `CancellationScope` that wraps child workflow execution request is canceled.
The result of the cancellation independently of the type is a FailedCancellationException thrown from the child workflow method.
Table of Contents
Cases
- Abandon = 2
- Do not request cancellation of the activity and immediately report cancellation to the workflow.
- TryCancel = 1
- Initiate a cancellation request and immediately report cancellation to the workflow.
- WaitCancellationCompleted
- Wait for activity cancellation completion. Note that activity must heartbeat to receive a cancellation notification. This can block the cancellation for a long time if activity doesn't heartbeat or chooses to ignore the cancellation request.
Cases
WaitCancellationCompleted
Wait for activity cancellation completion. Note that activity must heartbeat to receive a cancellation notification. This can block the cancellation for a long time if activity doesn't heartbeat or chooses to ignore the cancellation request.
TryCancel
Initiate a cancellation request and immediately report cancellation to the workflow.
Abandon
Do not request cancellation of the activity and immediately report cancellation to the workflow.
Note: currently not supported.