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
| Component | What it does |
|---|---|
SupervisorApi | High-level facade: submit, query, cancel, sweep |
TaskState | In-memory task + run storage (Arc<RwLock>) |
StateSubscriber | Wires taskvisor events into TaskState |
state_sweep | Embedded periodic task sweeping expired state (auto-started) |
map | Policy adapter: solti-model → taskvisor 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
solti_model::TaskSpecinput spec submitted viaSupervisorApi::submit.taskvisor::Supervisorunderlying runtime that manages actor lifecycle.solti_runner::RunnerRouterpicks a runner for eachTaskKind.
Re-exports§
pub use supervisor::SupervisorApi;
Modules§
- supervisor
- High-level API over taskvisor
Supervisorused by solti-core.
Structs§
- State
Config - Configuration for in-memory state retention and periodic sweep.
Enums§
Functions§
- uptime_
seconds - Get agent uptime in seconds.