RPC annotations that change how a cluster delivers an entity's
messages (Effect's ClusterSchema). Set them with rpc.annotate.
Values#
| Attribute | Type | Description |
|---|---|---|
ABANDON_ANNOTATION | Context[Any] | What an abandoning interruption is annotated with. |
Types#
| Type | Definition | Description |
|---|---|---|
UninterruptibleMode | type UninterruptibleMode = bool | Literal['client', 'server'] | |
DynamicAnnotations | type DynamicAnnotations = Callable[[Context[Any], Request[Any]], Context[Any]] |
Classes#
PersistedWithTransactionUninterruptibleInterruptOnTerminationShardGroupClientTracingEnabledAbandonDynamic
Functions#
is_uninterruptible_for_server#
is_uninterruptible_for_server(annotations) -> bool| Parameter | Type | Description |
|---|---|---|
annotations | Context |
Returns bool
def is_uninterruptible_for_server(annotations: Context) -> bool:
value = annotations.get(Uninterruptible)
return value is True or value == "server"is_uninterruptible_for_client#
is_uninterruptible_for_client(annotations) -> bool| Parameter | Type | Description |
|---|---|---|
annotations | Context |
Returns bool
def is_uninterruptible_for_client(annotations: Context) -> bool:
value = annotations.get(Uninterruptible)
return value is True or value == "client"