improve event processing by adding asynchronous handling for better performance
This commit is contained in:
parent
3c238fb5f7
commit
07cabf43e3
1 changed files with 2 additions and 0 deletions
|
|
@ -92,6 +92,8 @@ async function backfillMissingClusters(limit = 128) {
|
|||
|
||||
assignEvent.run(eventId, article.id);
|
||||
processed++;
|
||||
|
||||
await new Promise((resolve) => setImmediate(resolve));
|
||||
}
|
||||
} finally {
|
||||
clusteringRunning = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue