Skip to content

Commit

Permalink
added process.exit to when the app finishes
Browse files Browse the repository at this point in the history
Until polkadot-api/polkadot-api#327 is fixed, we need to manually exit the process
  • Loading branch information
Bullrich committed Mar 15, 2024
1 parent eaad5d6 commit 37444e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/fellows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export const fetchAllFellows = async (
logger.info("Initializing smoldot");
const smoldot = start();
const SmProvider = getSmProvider(smoldot);

// TODO: Replace once https://github.com/paritytech/opstooling/discussions/373 is fixed
let polkadotClient: ReturnType<typeof createClient> | null = null;

try {
Expand Down
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ const mapFellows = (fellows: FellowObject[]) => {
setOutput("github-handles", githubHandles);
};

fetchAllFellows(logger).then(mapFellows).catch(setFailed);
fetchAllFellows(logger)
.then(mapFellows)
.catch(setFailed)
.finally(() => {
logger.info("Shutting down application");
// TODO: Remove this once https://github.com/polkadot-api/polkadot-api/issues/327 is fixed
process.exit(0);
});

0 comments on commit 37444e5

Please sign in to comment.