From d9f53bbadcf175358b6eca10fdc3f8169eebcc8b Mon Sep 17 00:00:00 2001 From: Erez Weiss Date: Sun, 8 Sep 2024 23:00:49 +0300 Subject: [PATCH] add an healthcheck route --- app.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.mjs b/app.mjs index ce1cb62..6bce40b 100644 --- a/app.mjs +++ b/app.mjs @@ -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.`) + })(); \ No newline at end of file