Skip to main content

Crate solti_core

Crate solti_core 

Source
Expand description

§solti-core - orchestration layer.

Bridges solti-model (public API types) with the taskvisor runtime. Provides SupervisorApi: the main entry point for submitting, querying, and cancelling tasks.

§Responsibilities

ComponentWhat it does
SupervisorApiHigh-level facade: submit, query, cancel, sweep
TaskStateIn-memory task + run storage (Arc<RwLock>)
StateSubscriberWires taskvisor events into TaskState
state_sweepEmbedded periodic task sweeping expired state (auto-started)
mapPolicy adapter: solti-modeltaskvisor enums

§Quick start

let api = SupervisorApi::new(sup_cfg, ctrl_cfg, subscribers, router, StateConfig::default()).await?;

let task_id = api.submit(&spec).await?;
let task    = api.get_task(&task_id);
let runs    = api.list_task_runs(&task_id);

§Also

Re-exports§

pub use supervisor::SupervisorApi;

Modules§

supervisor
High-level API over taskvisor Supervisor used by solti-core.

Structs§

StateConfig
Configuration for in-memory state retention and periodic sweep.

Enums§

CoreError

Functions§

uptime_seconds
Get agent uptime in seconds.