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:
Chris Parsons 2026-05-01 21:07:26 +00:00
parent bc0f5301af
commit 327c7b91ca
No known key found for this signature in database

View file

@ -74,7 +74,9 @@ async function main() {
}
}
main().catch((e) => {
console.error(e);
process.exit(1);
});
main()
.then(() => process.exit(0))
.catch((e) => {
console.error(e);
process.exit(1);
});