troupekit-host 0.3.1

Hosting for Troupekit graph runs: a leased job queue, an event log and a runner with worker and serverless step modes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use troupekit_core::error::CoreError;
use troupekit_core::ids::RunId;
use troupekit_graph::GraphError;

/// Why a host call failed: a graph error (bad checkpoint, resume that does
/// not fit), a store or queue failure, or a run with no checkpoint.
/// A run that fails during a step is not an error: its job fails instead.
#[derive(Debug, Clone, PartialEq, thiserror::Error)]
pub enum HostError {
    #[error(transparent)]
    Graph(#[from] GraphError),
    #[error(transparent)]
    Store(#[from] CoreError),
    #[error("run {0} has no checkpoint")]
    NoCheckpoint(RunId),
}