Expand description
Hosting for Troupekit graph runs: a job queue with one leased job per
run, an event log that dedupes on (run_id, seq), and a Runner that
claims a job, steps the run from its latest checkpoint and saves it, in
worker mode (a loop) or step mode (one tick per serverless request).
Re-exports§
pub use error::HostError;pub use events::EventLog;pub use queue::InMemQueue;pub use runner::Processed;pub use runner::Runner;pub use runner::TickOptions;pub use runner::TickReport;pub use runner::WorkOptions;
Modules§
Structs§
- Lease
- A claimed job: the run to step, the lease token that proves the claim and how many times the job was claimed since it last completed or was rescheduled. A token from an expired, re-claimed lease is stale.
Enums§
- JobState
- Where one run’s job stands.
Pendingwaits fordue_ms;Leasedis held untiluntil_ms, withnext_due_msfrom an enqueue during the lease;DoneandFailedend it until the next enqueue.
Traits§
- JobQueue
- Jobs keyed by run, at most one live job per run.
claim_dueleases due jobs and expired leases, earliest first;complete,failandrescheduleend a lease and returnCoreError::Conflictfor a stale one.