improve event processing by adding asynchronous handling for better performance
This commit is contained in:
@@ -92,6 +92,8 @@ async function backfillMissingClusters(limit = 128) {
|
||||
|
||||
assignEvent.run(eventId, article.id);
|
||||
processed++;
|
||||
|
||||
await new Promise((resolve) => setImmediate(resolve));
|
||||
}
|
||||
} finally {
|
||||
clusteringRunning = false;
|
||||
|
||||
Reference in New Issue
Block a user