Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions golem-common/src/model/oplog/payload/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,10 +1387,30 @@ impl From<SerializableIpAddresses> for Vec<IpAddress> {
#[desert(evolution())]
pub enum SerializableInvokeResult {
Failed(String),
FailedClassified {
kind: SerializableHostFailureKind,
message: String,
},
Pending,
Completed(Result<SchemaValue, SerializableRpcError>),
}

#[derive(
Debug,
Clone,
Copy,
PartialEq,
Eq,
BinaryCodec,
golem_schema_derive::IntoSchema,
golem_schema_derive::FromSchema,
)]
#[desert(evolution())]
pub enum SerializableHostFailureKind {
Transient,
Permanent,
}

#[derive(
Debug,
Clone,
Expand Down
Loading
Loading