Skip to content

Commit 466445a

Browse files
authored
Adding RetryContext to InvocationRequest (Resolves #52)
1 parent 821cff1 commit 466445a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/proto/FunctionRpc.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ message InvocationRequest {
278278

279279
// Populates activityId, tracestate and tags from host
280280
RpcTraceContext trace_context = 5;
281+
282+
// Current retry context
283+
RetryContext retry_context = 6;
281284
}
282285

283286
// Host sends ActivityId, traceStateString and Tags from host
@@ -292,6 +295,18 @@ message RpcTraceContext {
292295
map<string, string> attributes = 3;
293296
}
294297

298+
// Host sends retry context for a function invocation
299+
message RetryContext {
300+
// Current retry count
301+
int32 retry_count = 1;
302+
303+
// Max retry count
304+
int32 max_retry_count = 2;
305+
306+
// Exception that caused the retry
307+
RpcException exception = 3;
308+
}
309+
295310
// Host requests worker to cancel invocation
296311
message InvocationCancel {
297312
// Unique id for invocation

0 commit comments

Comments
 (0)