Skip to content

Commit

Permalink
Add idempotency_key to CallEntryMessage & OneWayCallEntryMessage.
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Oct 1, 2024
1 parent 65560bf commit cbcb27c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ enum ServiceProtocolVersion {
// Added
// * New entry to cancel invocations: CancelInvocationEntryMessage
// * New entry to retrieve the invocation id: GetCallInvocationIdEntryMessage
// * New field to set idempotency key for Call entries
V3 = 3;
}

Expand Down Expand Up @@ -317,6 +318,8 @@ message CallEntryMessage {
// If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
string key = 5;

string idempotency_key = 6;

oneof result {
bytes value = 14;
Failure failure = 15;
Expand Down Expand Up @@ -346,6 +349,8 @@ message OneWayCallEntryMessage {
// If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
string key = 6;

string idempotency_key = 7;

// Entry name
string name = 12;
}
Expand Down

0 comments on commit cbcb27c

Please sign in to comment.