fix(backfill-cli): exit 0 on success so pg pool doesn't block
The cached postgres connection pool keeps the Node event loop open after main() returns. Explicit process.exit(0) on success mirrors the pattern in scripts/capture-baseline.ts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
bc0f5301af
commit
327c7b91ca
1 changed files with 6 additions and 4 deletions
|
|
@ -74,7 +74,9 @@ async function main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch((e) => {
|
main()
|
||||||
console.error(e);
|
.then(() => process.exit(0))
|
||||||
process.exit(1);
|
.catch((e) => {
|
||||||
});
|
console.error(e);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue