mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-10 03:27:59 +00:00
Update gitnexus/src/core/run-analyze.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9aed932544
commit
41d7071fa2
1 changed files with 10 additions and 6 deletions
|
|
@ -268,12 +268,16 @@ export async function runFullAnalysis(
|
|||
|
||||
// Release ONNX Runtime session to prevent its C++ atexit handlers from
|
||||
// racing with LadybugDB cleanup during process.exit() (#38, #40).
|
||||
try {
|
||||
const { disposeEmbedder } = await import('./embeddings/embedder.js');
|
||||
await disposeEmbedder();
|
||||
} catch {
|
||||
/* best-effort */
|
||||
}
|
||||
const disposeEmbedderBestEffort = async (): Promise<void> => {
|
||||
try {
|
||||
const { disposeEmbedder } = await import('./embeddings/embedder.js');
|
||||
await disposeEmbedder();
|
||||
} catch {
|
||||
/* best-effort */
|
||||
}
|
||||
};
|
||||
|
||||
await disposeEmbedderBestEffort();
|
||||
}
|
||||
|
||||
// ── Phase 5: Finalize (98–100%) ───────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue