Skip to content

Commit

Permalink
Support for cascade terminate (#13)
Browse files Browse the repository at this point in the history
- A new property on TerminateRequest indicating whether a terminate operation should be recursive
- A corresponding property on ExecutionTerminatedEvent, matching the above
- A new TerminateOrchestrationAction action, which can be returned by an SDK
  • Loading branch information
cgillum authored Jul 10, 2023
1 parent 7d68268 commit 19f0f69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions protos/orchestrator_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ message ExecutionCompletedEvent {

message ExecutionTerminatedEvent {
google.protobuf.StringValue input = 1;
bool recurse = 2;
}

message TaskScheduledEvent {
Expand Down Expand Up @@ -217,6 +218,12 @@ message CompleteOrchestrationAction {
TaskFailureDetails failureDetails = 6;
}

message TerminateOrchestrationAction {
string instanceId = 1;
google.protobuf.StringValue reason = 2;
bool recurse = 3;
}

message OrchestratorAction {
int32 id = 1;
oneof orchestratorActionType {
Expand All @@ -225,6 +232,7 @@ message OrchestratorAction {
CreateTimerAction createTimer = 4;
SendEventAction sendEvent = 5;
CompleteOrchestrationAction completeOrchestration = 6;
TerminateOrchestrationAction terminateOrchestration = 7;
}
}

Expand Down Expand Up @@ -299,6 +307,7 @@ message RaiseEventResponse {
message TerminateRequest {
string instanceId = 1;
google.protobuf.StringValue output = 2;
bool recursive = 3;
}

message TerminateResponse {
Expand Down

0 comments on commit 19f0f69

Please sign in to comment.