Skip to main content

troupekit_host/
lib.rs

1//! Hosting for Troupekit graph runs: a job queue with one leased job per
2//! run, an event log that dedupes on `(run_id, seq)`, and a `Runner` that
3//! claims a job, steps the run from its latest checkpoint and saves it, in
4//! worker mode (a loop) or step mode (one `tick` per serverless request).
5
6#![doc(
7    html_logo_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/logo-mark.svg",
8    html_favicon_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/favicon.svg"
9)]
10
11pub mod error;
12pub mod events;
13pub mod queue;
14pub mod runner;
15
16pub use error::HostError;
17pub use events::EventLog;
18pub use queue::{InMemQueue, JobQueue, JobState, Lease};
19pub use runner::{Processed, Runner, TickOptions, TickReport, WorkOptions};
20