You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Adding different Nexus cancellation type behaviors
* Add additional comment info, remove debug logs
* Formatting
* A bit more PR cleanup
* Remove sleeps from test
* Comment
* Add replay validation
Copy file name to clipboardExpand all lines: sdk-core-protos/protos/local/temporal/sdk/core/nexus/nexus.proto
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,4 +68,19 @@ enum NexusTaskCancelReason {
68
68
TIMED_OUT=0;
69
69
// The worker is shutting down
70
70
WORKER_SHUTDOWN=1;
71
-
}
71
+
}
72
+
73
+
// Controls at which point to report back to lang when a nexus operation is cancelled
74
+
enumNexusOperationCancellationType {
75
+
// Do not request cancellation of the nexus operation if already scheduled
76
+
ABANDON=0;
77
+
78
+
// Initiate a cancellation request for the Nexus operation and immediately report cancellation
79
+
// to the caller. Note that it doesn't guarantee that cancellation is delivered to the operation if calling workflow exits before the delivery is done.
80
+
// If you want to ensure that cancellation is delivered to the operation, use WAIT_CANCELLATION_REQUESTED.
81
+
TRY_CANCEL=1;
82
+
// Request cancellation of the operation and wait for confirmation that the request was received.
83
+
WAIT_CANCELLATION_REQUESTED=2;
84
+
// Wait for operation cancellation completion. Default.
0 commit comments