labgate 0.5.20 → 0.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/cluster-mcp.js
CHANGED
|
@@ -40,7 +40,7 @@ function cleanPartitionName(raw) {
|
|
|
40
40
|
isDefault: trimmed.includes('*'),
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
async function runCommand(command, args, timeoutMs =
|
|
43
|
+
async function runCommand(command, args, timeoutMs = 30_000) {
|
|
44
44
|
try {
|
|
45
45
|
const { stdout, stderr } = await execFileAsync(command, args, {
|
|
46
46
|
timeout: timeoutMs,
|
package/dist/lib/slurm-poller.js
CHANGED
|
@@ -346,7 +346,7 @@ class SlurmPoller {
|
|
|
346
346
|
// ── Helpers ──────────────────────────────────────────────
|
|
347
347
|
exec(cmd, args) {
|
|
348
348
|
return new Promise((resolve, reject) => {
|
|
349
|
-
(0, child_process_1.execFile)(cmd, args, { timeout:
|
|
349
|
+
(0, child_process_1.execFile)(cmd, args, { timeout: 30_000 }, (err, stdout, stderr) => {
|
|
350
350
|
if (err) {
|
|
351
351
|
reject(new Error(`${cmd} failed: ${err.message}${stderr ? ` (${stderr.trim()})` : ''}`));
|
|
352
352
|
}
|
package/dist/lib/ui.html
CHANGED
|
@@ -4913,7 +4913,11 @@ function loadSlurmJobs() {
|
|
|
4913
4913
|
if (search) url += '&search=' + encodeURIComponent(search);
|
|
4914
4914
|
|
|
4915
4915
|
fetch(url).then(function(r) { return r.json(); }).then(function(data) {
|
|
4916
|
-
if (!data.ok
|
|
4916
|
+
if (!data.ok) {
|
|
4917
|
+
el.innerHTML = '<div class="empty-state">Error loading SLURM jobs: ' + escapeHtml(data.error || 'unknown error') + '</div>';
|
|
4918
|
+
return;
|
|
4919
|
+
}
|
|
4920
|
+
if (!data.jobs || data.jobs.length === 0) {
|
|
4917
4921
|
el.innerHTML = '<div class="empty-state">No SLURM jobs found</div>';
|
|
4918
4922
|
return;
|
|
4919
4923
|
}
|
|
@@ -29963,7 +29963,7 @@ function cleanPartitionName(raw) {
|
|
|
29963
29963
|
isDefault: trimmed.includes("*")
|
|
29964
29964
|
};
|
|
29965
29965
|
}
|
|
29966
|
-
async function runCommand(command, args, timeoutMs =
|
|
29966
|
+
async function runCommand(command, args, timeoutMs = 3e4) {
|
|
29967
29967
|
try {
|
|
29968
29968
|
const { stdout, stderr } = await execFileAsync(command, args, {
|
|
29969
29969
|
timeout: timeoutMs,
|