domain/runtime, app/run: add execution-time statistics aggregate (T2.4)

Add RunCount, FailCount, LastDurationMS, AvgDurationMS, MaxDurationMS
to JobRuntime and fold each completed RunRecord into them via updateStats
called from executeRun.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mixeme
2026-06-24 08:13:02 +03:00
parent 2b0cdb57f4
commit 7dafa82b21
3 changed files with 27 additions and 4 deletions
+4 -4
View File
@@ -88,10 +88,10 @@ Done first because both share a compact, single-line record formatter.
- [x] T1.4 — formatter tests
### Phase 2 — Execution-time statistics
- [ ] T2.1 — `DurationMS` on `RunRecord`
- [ ] T2.2 — measure duration in runner
- [ ] T2.3 — `duration` log header
- [ ] T2.4 — runtime aggregate + `executeRun` update
- [x] T2.1 — `DurationMS` on `RunRecord`
- [x] T2.2 — measure duration in runner
- [x] T2.3 — `duration` log header
- [x] T2.4 — runtime aggregate + `executeRun` update
- [ ] T2.5 — seed stats from log files
- [ ] T2.6 — `DisplayStats` + Statistics row
- [ ] T2.7 — stats tests