You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
|`PollInputStreamEntryMessage`|`0x0400`| Yes | No | Carries the invocation input message(s) of the invocation. Note: currently the runtime always sends this entry completed, but this may change in future. |
286
286
|`GetStateEntryMessage`|`0x0800`| Yes | No | Get the value of a service instance state key. |
287
+
|`GetStateKeysEntryMessage`|`0x0804`| Yes | No | Get all the known state keys for this service instance. Note: the completion value for this message is a protobuf of type `GetStateKeysEntryMessage.StateKeys`. |
287
288
|`SleepEntryMessage`|`0x0C00`| Yes | No | Initiate a timer that completes after the given time. |
288
289
|`InvokeEntryMessage`|`0x0C01`| Yes | Yes | Invoke another Restate service. |
289
290
|`AwakeableEntryMessage`|`0x0C03`| Yes | No | Arbitrary result container which can be completed from another service, given a specific id. See [Awakeable identifier](#awakeable-identifier) for more details. |
@@ -298,8 +299,9 @@ descriptions in [`protocol.proto`](dev/restate/service/protocol.proto).
298
299
When creating an `AwakeableEntryMessage`, the SDK MUST expose to the user code an id, required to later complete the
299
300
entry, using either `CompleteAwakeableEntryMessage` or some other mechanism provided by the runtime.
300
301
301
-
The id format is a string starts with `prom_1` concatenated with a [Base64 URL Safe string](https://datatracker.ietf.org/doc/html/rfc4648#section-5) encoding of a byte
302
-
array that concatenates:
302
+
The id format is a string starts with `prom_1` concatenated with a
303
+
[Base64 URL Safe string](https://datatracker.ietf.org/doc/html/rfc4648#section-5) encoding of a byte array that
304
+
concatenates:
303
305
304
306
-`StartMessage.id`
305
307
- The index of the Awakeable entry, encoded as unsigned 32 bit integer big endian.
@@ -331,8 +333,8 @@ To notify a failure, the SDK can either:
331
333
332
334
- Close the stream with `ErrorMessage` as last message. This message is used by the runtime for accurate reporting to
333
335
the user.
334
-
- Close the stream without `EndMessage` or `SuspensionMessage` or `ErrorMessage`. This is equivalent to sending
335
-
an `ErrorMessage` with unknown reason.
336
+
- Close the stream without `EndMessage` or `SuspensionMessage` or `ErrorMessage`. This is equivalent to sending an
337
+
`ErrorMessage` with unknown reason.
336
338
337
339
The runtime takes care of retrying to execute the invocation after such failures occur, following a defined set of
338
340
policies. When retrying, the previous stored journal will be reused. Moreover, the SDK MUST NOT assume that every
0 commit comments