Feat: Enhance job history with accurate timestamps and duration

This commit is contained in:
Simon Cordt
2025-09-24 02:49:43 +02:00
parent 2e426329cf
commit 312a5ca3a8
2 changed files with 139 additions and 4 deletions
+4
View File
@@ -251,6 +251,10 @@
function buildDuration(row) {
try {
const dur = Number(row.duration_seconds);
if (!Number.isNaN(dur) && dur > 0) {
return `${dur.toFixed(2)}s`;
}
const started = row.created_at || row.started_at;
const completed = row.completed_at;
if (!started || !completed) return '';