Skip to content

Commit 8c1ca3d

Browse files
committed
Update comments in slack handlers
1 parent ba64a4b commit 8c1ca3d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/slackBotFunction/app/slack/slack_handlers.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44

55
import time
66
import json
7-
import os
87
import boto3
98
from botocore.exceptions import ClientError
109
from app.core.config import table, bot_token, logger
10+
import os
1111

1212

1313
def setup_handlers(app):
1414
"""
15-
Configure and register all Slack event handlers and middleware with the app.
16-
17-
This is the main entry point for setting up the bot's event handling capabilities.
18-
Called during app initialization to wire up all handlers.
15+
Register all event handlers with the Slack app
1916
"""
2017

2118
@app.middleware
@@ -93,6 +90,7 @@ def trigger_async_processing(event_data):
9390
This function invokes the same Lambda function asynchronously to handle the
9491
actual AI processing without blocking the initial Slack response.
9592
"""
93+
# incase we fail to re-invoke the lambda we should log an error
9694
try:
9795
lambda_client = boto3.client("lambda")
9896
lambda_client.invoke(

0 commit comments

Comments
 (0)