Skip to content

Commit

Permalink
reanble healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko-braun committed Jan 12, 2024
1 parent 9496a77 commit bfc45e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def print(self, message):
text=f"{message}"
)

print(slack_response)
#print(slack_response)

def set_visible(self, is_visible):
pass
Expand Down
6 changes: 3 additions & 3 deletions slack_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def handle_message_events(body, logger):
# the bot ignores messages outsides threads
@app.event("message")
def handle_message_events(event, say):

print(event)
if event.get("thread_ts"):
# within threads we listen to messages
print("handle message within thread")
Expand Down Expand Up @@ -147,7 +147,7 @@ def graceful_shutdown(signum, frame):
socket.disconnect()
socket.close()

#healthcheck_process.join()
healthcheck_process.join()

sys.exit(0)

Expand All @@ -158,7 +158,7 @@ def graceful_shutdown(signum, frame):
signal.signal(signal.SIGTERM, graceful_shutdown)

# healthcheck
#healthcheck_process.start()
healthcheck_process.start()

# scheduler reaper
scheduler.add_job(retire_inactive_conversation, 'interval', seconds=5, id='retirement_job')
Expand Down

0 comments on commit bfc45e5

Please sign in to comment.