Skip to content

Commit

Permalink
add an healthcheck route
Browse files Browse the repository at this point in the history
  • Loading branch information
ErezWeiss committed Sep 8, 2024
1 parent fc150f3 commit d9f53bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ async function initApp(app) {
await app.start(process.env.PORT || port);
console.log(`⚡️ Slack Bolt app is running on port ${port}!`);
console.log(`Healthcheck endpoint available at http://localhost:${port}/healthcheck`);

// todo: confirm the block below is not preventing the bot to accept event in Cloudrun without no cpu throttling
console.log(`Checking all expired duration based accesses are revoked.`)
await startUpCleanUp(app)
console.log(`All expired duration based accesses are revoked.`)

})();

0 comments on commit d9f53bb

Please sign in to comment.