Skip to content

Commit 589cb5e

Browse files
update orchestrator service for compatibility with DTS (#31)
1 parent 6000187 commit 589cb5e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

protos/orchestrator_service.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,15 @@ message TerminateOrchestrationAction {
288288
bool recurse = 3;
289289
}
290290

291+
message SendEntityMessageAction {
292+
oneof EntityMessageType {
293+
EntityOperationSignaledEvent entityOperationSignaled = 1;
294+
EntityOperationCalledEvent entityOperationCalled = 2;
295+
EntityLockRequestedEvent entityLockRequested = 3;
296+
EntityUnlockSentEvent entityUnlockSent = 4;
297+
}
298+
}
299+
291300
message OrchestratorAction {
292301
int32 id = 1;
293302
oneof orchestratorActionType {
@@ -297,6 +306,7 @@ message OrchestratorAction {
297306
SendEventAction sendEvent = 5;
298307
CompleteOrchestrationAction completeOrchestration = 6;
299308
TerminateOrchestrationAction terminateOrchestration = 7;
309+
SendEntityMessageAction sendEntityMessage = 8;
300310
}
301311
}
302312

@@ -551,6 +561,8 @@ message EntityBatchResult {
551561
repeated OperationAction actions = 2;
552562
google.protobuf.StringValue entityState = 3;
553563
TaskFailureDetails failureDetails = 4;
564+
string completionToken = 5;
565+
repeated OperationInfo operationInfos = 6; // used only with DTS
554566
}
555567

556568
message EntityRequest {
@@ -573,6 +585,11 @@ message OperationResult {
573585
}
574586
}
575587

588+
message OperationInfo {
589+
string requestId = 1;
590+
OrchestrationInstance responseDestination = 2; // null for signals
591+
}
592+
576593
message OperationResultSuccess {
577594
google.protobuf.StringValue result = 1;
578595
}

0 commit comments

Comments
 (0)