Skip to content

Commit

Permalink
Made cli start mq bot hang infinitely to preserve main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Jan 15, 2025
1 parent 262dd5e commit 15ca832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chatbot_core/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import os
import argparse
from threading import Event

import click

from os.path import expanduser, relpath
Expand Down Expand Up @@ -74,6 +76,7 @@ def cli_start_mq_bot():
help="Chatbot entrypoint name", type=str)
args = parser.parse_args()
run_mq_bot(args.bot_name)
Event().wait()


def cli_start_bots():
Expand Down

0 comments on commit 15ca832

Please sign in to comment.