3
3
4
4
syntax = "proto3" ;
5
5
6
- option csharp_namespace = "Microsoft .DurableTask.Protobuf" ;
6
+ option csharp_namespace = "Dapr .DurableTask.Protobuf" ;
7
7
option java_package = "io.dapr.durabletask.implementation.protobuf" ;
8
8
option go_package = "/api/protos" ;
9
9
@@ -12,6 +12,11 @@ import "google/protobuf/duration.proto";
12
12
import "google/protobuf/wrappers.proto" ;
13
13
import "google/protobuf/empty.proto" ;
14
14
15
+ message TaskRouter {
16
+ string source = 1 ; // orchestrationAppID
17
+ optional string target = 2 ; // appID
18
+ }
19
+
15
20
message OrchestrationInstance {
16
21
string instanceId = 1 ;
17
22
google.protobuf.StringValue executionId = 2 ;
@@ -24,6 +29,7 @@ message ActivityRequest {
24
29
OrchestrationInstance orchestrationInstance = 4 ;
25
30
int32 taskId = 5 ;
26
31
TraceContext parentTraceContext = 6 ;
32
+ string taskExecutionId = 7 ;
27
33
}
28
34
29
35
message ActivityResponse {
@@ -94,16 +100,19 @@ message TaskScheduledEvent {
94
100
google.protobuf.StringValue version = 2 ;
95
101
google.protobuf.StringValue input = 3 ;
96
102
TraceContext parentTraceContext = 4 ;
103
+ string taskExecutionId = 5 ;
97
104
}
98
105
99
106
message TaskCompletedEvent {
100
107
int32 taskScheduledId = 1 ;
101
108
google.protobuf.StringValue result = 2 ;
109
+ string taskExecutionId = 3 ;
102
110
}
103
111
104
112
message TaskFailedEvent {
105
113
int32 taskScheduledId = 1 ;
106
114
TaskFailureDetails failureDetails = 2 ;
115
+ string taskExecutionId = 3 ;
107
116
}
108
117
109
118
message SubOrchestrationInstanceCreatedEvent {
@@ -192,10 +201,10 @@ message EntityOperationCalledEvent {
192
201
}
193
202
194
203
message EntityLockRequestedEvent {
195
- string criticalSectionId = 1 ;
204
+ string criticalSectionId = 1 ;
196
205
repeated string lockSet = 2 ;
197
206
int32 position = 3 ;
198
- google.protobuf.StringValue parentInstanceId = 4 ; // used only within messages, null in histories
207
+ google.protobuf.StringValue parentInstanceId = 4 ; // used only within messages, null in histories
199
208
}
200
209
201
210
message EntityOperationCompletedEvent {
@@ -210,14 +219,14 @@ message EntityOperationFailedEvent {
210
219
211
220
message EntityUnlockSentEvent {
212
221
string criticalSectionId = 1 ;
213
- google.protobuf.StringValue parentInstanceId = 2 ; // used only within messages, null in histories
222
+ google.protobuf.StringValue parentInstanceId = 2 ; // used only within messages, null in histories
214
223
google.protobuf.StringValue targetInstanceId = 3 ; // used only within histories, null in messages
215
224
}
216
225
217
226
message EntityLockGrantedEvent {
218
227
string criticalSectionId = 1 ;
219
228
}
220
-
229
+
221
230
message HistoryEvent {
222
231
int32 eventId = 1 ;
223
232
google.protobuf.Timestamp timestamp = 2 ;
@@ -244,25 +253,29 @@ message HistoryEvent {
244
253
ExecutionResumedEvent executionResumed = 22 ;
245
254
EntityOperationSignaledEvent entityOperationSignaled = 23 ;
246
255
EntityOperationCalledEvent entityOperationCalled = 24 ;
247
- EntityOperationCompletedEvent entityOperationCompleted = 25 ;
248
- EntityOperationFailedEvent entityOperationFailed = 26 ;
256
+ EntityOperationCompletedEvent entityOperationCompleted = 25 ;
257
+ EntityOperationFailedEvent entityOperationFailed = 26 ;
249
258
EntityLockRequestedEvent entityLockRequested = 27 ;
250
259
EntityLockGrantedEvent entityLockGranted = 28 ;
251
260
EntityUnlockSentEvent entityUnlockSent = 29 ;
252
261
}
262
+ optional TaskRouter router = 30 ;
253
263
}
254
264
255
265
message ScheduleTaskAction {
256
266
string name = 1 ;
257
267
google.protobuf.StringValue version = 2 ;
258
268
google.protobuf.StringValue input = 3 ;
269
+ optional TaskRouter router = 4 ;
270
+ string taskExecutionId = 5 ;
259
271
}
260
272
261
273
message CreateSubOrchestrationAction {
262
274
string instanceId = 1 ;
263
275
string name = 2 ;
264
276
google.protobuf.StringValue version = 3 ;
265
277
google.protobuf.StringValue input = 4 ;
278
+ optional TaskRouter router = 5 ;
266
279
}
267
280
268
281
message CreateTimerAction {
@@ -311,6 +324,7 @@ message OrchestratorAction {
311
324
TerminateOrchestrationAction terminateOrchestration = 7 ;
312
325
SendEntityMessageAction sendEntityMessage = 8 ;
313
326
}
327
+ optional TaskRouter router = 9 ;
314
328
}
315
329
316
330
message OrchestratorRequest {
@@ -320,6 +334,7 @@ message OrchestratorRequest {
320
334
repeated HistoryEvent newEvents = 4 ;
321
335
OrchestratorEntityParameters entityParameters = 5 ;
322
336
bool requiresHistoryStreaming = 6 ;
337
+ optional TaskRouter router = 7 ;
323
338
}
324
339
325
340
message OrchestratorResponse {
0 commit comments