Skip to content

Commit 5bac21c

Browse files
committed
Added VERSION_PENDING state for workflows waiting for actor dissemination
Signed-off-by: Albert Callarisa <[email protected]>
1 parent dab4acc commit 5bac21c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

protos/orchestrator_service.proto

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ message TaskRouter {
1717
optional string targetAppID = 2;
1818
}
1919

20-
message Version {
21-
string name = 1;
22-
uint32 number = 2;
23-
}
24-
2520
message Patches {
2621
repeated string patches = 1;
2722
}
@@ -66,6 +61,7 @@ enum OrchestrationStatus {
6661
ORCHESTRATION_STATUS_TERMINATED = 5;
6762
ORCHESTRATION_STATUS_PENDING = 6;
6863
ORCHESTRATION_STATUS_SUSPENDED = 7;
64+
ORCHESTRATION_STATUS_VERSION_PENDING = 8;
6965
}
7066

7167
message ParentInstanceInfo {
@@ -193,6 +189,10 @@ message ExecutionResumedEvent {
193189
google.protobuf.StringValue input = 1;
194190
}
195191

192+
message ExecutionVersionPendingEvent {
193+
// No payload data
194+
}
195+
196196
message EntityOperationSignaledEvent {
197197
string requestId = 1;
198198
string operation = 2;
@@ -269,6 +269,7 @@ message HistoryEvent {
269269
EntityLockRequestedEvent entityLockRequested = 27;
270270
EntityLockGrantedEvent entityLockGranted = 28;
271271
EntityUnlockSentEvent entityUnlockSent = 29;
272+
ExecutionVersionPendingEvent executionVersionPending = 31;
272273
}
273274
optional TaskRouter router = 30;
274275
}
@@ -358,7 +359,9 @@ message OrchestratorResponse {
358359
// This field is optional. If not set, the service should assume that the orchestrator processed all events.
359360
google.protobuf.Int32Value numEventsProcessed = 5;
360361

361-
optional Patches patches = 6;
362+
optional string workflowTypeName = 6;
363+
optional Patches patches = 7;
364+
bool patchMismatch = 8;
362365
}
363366

364367
message CreateInstanceRequest {

protos/runtime_state.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ message OrchestrationRuntimeState {
4242
bool isSuspended = 13;
4343

4444
google.protobuf.StringValue customStatus = 14;
45+
bool isVersionPending = 15;
4546
}
4647

4748
// OrchestrationRuntimeStateMessage holds an OrchestratorMessage and the target instance ID.

0 commit comments

Comments
 (0)