improve event processing by adding asynchronous handling for better performance

This commit is contained in:
ImBenji 2026-04-21 12:46:30 +01:00
parent 3c238fb5f7
commit 07cabf43e3

View file

@ -92,6 +92,8 @@ async function backfillMissingClusters(limit = 128) {
assignEvent.run(eventId, article.id); assignEvent.run(eventId, article.id);
processed++; processed++;
await new Promise((resolve) => setImmediate(resolve));
} }
} finally { } finally {
clusteringRunning = false; clusteringRunning = false;