Requeue messages on the server as well

This commit is contained in:
Zef Hemel
2023-11-15 09:31:44 +01:00
parent 0c118f322f
commit b4ab56c712
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export async function reindexSpace() {
// Now let's wait for the processing to finish
let queueStats = await mq.getQueueStats("indexQueue");
while (queueStats.queued > 0 || queueStats.processing > 0) {
sleep(1000);
await sleep(500);
queueStats = await mq.getQueueStats("indexQueue");
}
// And notify the user