feat(ui): Reiter Engines und überarbeitete Modelle-Seite mit Dialog je Modell (#1068)
Engine::start_info meldet das Startkommando mit Platzhaltern. Die Karten "Planung ändern" weichen einem Dialog je Modell. Lokal mit Attrappen im Browser gesehen, auf srv04 nicht geprüft. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg3osejhFSpUz472iQ1
This commit is contained in:
@ -18,7 +18,7 @@ use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
|
||||
use std::sync::{Arc, Mutex, MutexGuard, OnceLock, Weak};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
use nexus_adapter::{Endpoint, Engine, Health, InstanceHandle, ProfileSpec};
|
||||
use nexus_adapter::{Endpoint, Engine, EngineInfo, Health, InstanceHandle, ProfileSpec, StartInfo};
|
||||
use nexus_core::Priority;
|
||||
use nexus_scheduler::{Action, InstId, InstState, Job, JobId, Need, Planner, UnloadReason};
|
||||
use nexus_store::{StartPlan, Store};
|
||||
@ -364,6 +364,19 @@ impl Runtime {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Die angeschlossenen Engines mit Fähigkeiten und Startkommando, nach Namen
|
||||
/// sortiert (für die Oberfläche).
|
||||
pub fn engine_overview(&self) -> Vec<(String, EngineInfo, StartInfo)> {
|
||||
let mut all: Vec<_> = self
|
||||
.shared
|
||||
.engines
|
||||
.iter()
|
||||
.map(|(name, e)| (name.clone(), e.describe(), e.start_info()))
|
||||
.collect();
|
||||
all.sort_by(|a, b| a.0.cmp(&b.0));
|
||||
all
|
||||
}
|
||||
|
||||
/// Stand des Schedulers: wer wartet, welche Instanzen gebucht sind.
|
||||
pub fn scheduler_view(&self) -> SchedulerView {
|
||||
let inner = self.shared.lock();
|
||||
|
||||
Reference in New Issue
Block a user