Chore: allow trace tool to run across workers/realms

This commit is contained in:
SukkaW
2026-04-13 16:20:29 +08:00
parent ed5d088d43
commit a4dfcaa669
4 changed files with 87 additions and 21 deletions

View File

@@ -124,10 +124,12 @@ const buildFinishedLock = path.join(ROOT_DIR, '.BUILD_FINISHED');
});
printStats(traces);
await microsoftCdnWorker.end();
await cdnDownloadWorker.end();
await telegramCidrWorker.end();
await mockAssetsWorker.end();
await Promise.all([
microsoftCdnWorker.end(),
cdnDownloadWorker.end(),
telegramCidrWorker.end(),
mockAssetsWorker.end()
]);
// Finish the build to avoid leaking timer/fetch ref
await whyIsNodeRunning();