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);
|
assignEvent.run(eventId, article.id);
|
||||||
processed++;
|
processed++;
|
||||||
|
|
||||||
|
await new Promise((resolve) => setImmediate(resolve));
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
clusteringRunning = false;
|
clusteringRunning = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user