fix: retry only HLTB misses and show progress
CI / test (push) Successful in 24s

This commit is contained in:
strsv committed 2026-11-07 00:27:41 +03:00
1 parent 5874ffba9f
commit e82d0e0f0a
4 files changed
+25 -8

No files matched your search

+7 -1
View File
@@ -1708,9 +1708,15 @@ async function startJob(url, body, label) {
const el = $(sel);
if (el) el.disabled = true;
});
toast(`${label}: запущено`);
pollJob();
} catch (err) {
toast(err.message);
if (err.message.includes("another job is running")) {
toast("Уже выполняется задача — показываю её статус");
pollJob();
} else {
toast(err.message);
}
}
}