Skip to content

Commit b1fe3a6

Browse files
committed
add reason
1 parent 9a4d896 commit b1fe3a6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

temporal/api/batch/v1/message.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ message BatchOperationTermination {
4545
message BatchOperationTerminateActivities {
4646
// The identity of the worker/client
4747
string identity = 1;
48+
// Reason for requesting the termination, recorded and available via the PollActivityExecution API.
49+
// Not propagated to a worker if an activity attempt is currently running.
50+
string reason = 2;
4851
}
4952

5053
// BatchOperationSignal sends signals to batch workflows.
@@ -74,6 +77,9 @@ message BatchOperationCancellation {
7477
message BatchOperationCancelActivities {
7578
// The identity of the worker/client
7679
string identity = 1;
80+
// Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
81+
// Not propagated to a worker if an activity attempt is currently running.
82+
string reason = 2;
7783
}
7884

7985
// BatchOperationDeletion sends deletion requests to batch workflows.

0 commit comments

Comments
 (0)