changed poll and some UI bugs.

This commit is contained in:
Philipp
2026-06-04 14:31:53 +02:00
parent 0b059aec1d
commit 2102481ed0
7 changed files with 77 additions and 14 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ proxyRouter.get('/vms', async (_req, res) => {
const rows = [];
await Promise.all(nodes.map(async (node) => {
try {
const vms = await agentRequest(node, '/vms');
const vms = await agentRequest(node, '/vms', { timeout: 8000 });
for (const vm of vms) {
rows.push({ ...vm, id: `${node.id}:${vm.name}`, nodeId: node.id, nodeName: node.name });
}
@@ -45,7 +45,7 @@ proxyRouter.get('/jobs', async (_req, res) => {
const rows = [];
await Promise.all(nodes.map(async (node) => {
try {
const jobs = await agentRequest(node, '/jobs');
const jobs = await agentRequest(node, '/jobs', { timeout: 8000 });
for (const job of jobs) rows.push({ ...job, nodeId: node.id, nodeName: node.name });
} catch {
recordNodeHealth(node.id, 'error');