Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
Add fields for the Side effect retry feature
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Aug 19, 2024
1 parent 89224c6 commit a5957a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ message StartMessage {

// If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
string key = 6;

// Retry count since the last stored entry.
//
// Please not this count might not be accurate, as it's not durably stored,
// thus it's susceptible to Restate's crashes/leader election changes.
uint32 retry_count_since_last_stored_entry = 7;

// Duration since the last stored entry.
// The time is set as duration since UNIX Epoch in milliseconds.
//
// Please note this time might not be accurate,
// and might change depending on which Restate replica executes the request.
uint64 duration_since_last_stored_entry = 8;
}

// Type: 0x0000 + 1
Expand Down Expand Up @@ -90,6 +103,11 @@ message ErrorMessage {
optional string related_entry_name = 5;
// Entry type.
optional uint32 related_entry_type = 6;

// When to execute the next retry.
// If provided, it will override the default retry policy used by Restate's invoker.
// The time is set as duration since UNIX Epoch in milliseconds.
optional uint64 next_retry_at = 8;
}

// Type: 0x0000 + 4
Expand Down

0 comments on commit a5957a1

Please sign in to comment.