Skip to content

Commit

Permalink
fix: explicitly exit process after beacon node closed
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jun 27, 2023
1 parent d9fa355 commit 1419fd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/cmds/beacon/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void
try {
await node.close();
logger.debug("Beacon node closed");
// Explicitly exit until active handles issue is resolved
// See https://github.com/ChainSafe/lodestar/issues/5642
process.exit(0);
} catch (e) {
logger.error("Error closing beacon node", {}, e as Error);
// Make sure db is always closed gracefully
Expand Down

0 comments on commit 1419fd4

Please sign in to comment.