Update app.py
Browse files
app.py
CHANGED
|
@@ -977,8 +977,11 @@ async function refreshWarmupUI(){
|
|
| 977 |
|
| 978 |
if (warmupStatusEl) {
|
| 979 |
const tot = (s.total ?? 0);
|
| 980 |
-
|
| 981 |
-
|
|
|
|
|
|
|
|
|
|
| 982 |
// Détection fin de run (par job_id) => toast récap une seule fois
|
| 983 |
if (s.done && s.job_id && window._lastNotifiedJobId !== s.job_id) {
|
| 984 |
const tot2 = (s.total ?? 0);
|
|
|
|
| 977 |
|
| 978 |
if (warmupStatusEl) {
|
| 979 |
const tot = (s.total ?? 0);
|
| 980 |
+
if (running) {
|
| 981 |
+
const idx = (s.idx ?? 0) + 1;
|
| 982 |
+
warmupStatusEl.textContent = `⏳ ${pct}% — ${s.current||''} (${idx}/${tot}) [inst:${instanceId}]`;
|
| 983 |
+
} else {
|
| 984 |
+
|
| 985 |
// Détection fin de run (par job_id) => toast récap une seule fois
|
| 986 |
if (s.done && s.job_id && window._lastNotifiedJobId !== s.job_id) {
|
| 987 |
const tot2 = (s.total ?? 0);
|