fix: Abstürze erkennen, abgebrochene Streams melden, Messwerte und Speicher absichern, Startgrund nennen (#1273, #1274, #1275, #1276, #1277)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 14:47:33 +01:00
parent 54186593a8
commit 12347cd031
12 changed files with 419 additions and 49 deletions

View File

@ -40,6 +40,8 @@ pub struct Finish {
pub latency_ms: u64,
/// Zusage des Schedulers; endet mit der Antwort und gibt die Instanz frei.
pub lease: Lease,
/// Die Engine hat den Strom vor dem Ende der Antwort abgebrochen (#1273).
pub abgebrochen: std::sync::Arc<std::sync::atomic::AtomicBool>,
}
pub struct Tap {
@ -71,6 +73,7 @@ impl Tap {
let Some(f) = self.finish.take() else {
return;
};
let aborted = aborted || f.abgebrochen.load(std::sync::atomic::Ordering::SeqCst);
let usage = find_usage(&self.tail);
self.tail = Vec::new();
let duration_ms = f.started.elapsed().as_millis() as u64;