This commit is contained in:
1 parent
5874ffba9f
commit
e82d0e0f0a
4 files changed
+25
-8
No files matched your search
+7
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user