fix benchmark tool

This commit is contained in:
Ruben Fiszel
2023-08-18 15:32:39 +02:00
parent 89c5c69c21
commit b60f2be88c

View File

@@ -269,9 +269,9 @@ await new Command()
const updateState = setInterval(async () => {
const elapsed = start ? Math.ceil((Date.now() - start) / 1000) : 0;
const sum = jobsSent.reduce((a, b) => a + b, 0);
const queue_length = -1;
let queue_length = -1;
try {
(
queue_length = (
await (
await fetch(
host + "/api/w/" + config.workspace_id + "/jobs/queue/count",