Skip to content

0.21 RabbitMQ message control/logging system

Compare
Choose a tag to compare
@sudoskys sudoskys released this 12 Oct 08:49
· 637 commits to main since this release
3abaf89

🔨 DEPLOY ATTENTION

🧯 Before updating the program,stop bot, please go to http://{ip}:15672/#/queues and delete all queues to avoid any conflicts.

If you run the following commands in the CLI:

# View all queues
rabbitmqctl list_queues

# Delete a specific queue based on the queue_name parameter
rabbitmqctl delete_queue queue_name

Or recreate the rabbitmq container

Added

  • RabbitMQ
EXPIRATION_SECOND = 60 * 5  # 5min
QUEUE_MAX_LENGTH = 120
X_OVERFLOW = "reject-publish"  # 拒绝
CONSUMER_PREFETCH_COUNT = 12  # 消息流控
QUEUE_ARGUMENTS = {
    "x-max-length": QUEUE_MAX_LENGTH,  # 上限
    # "message-ttl": EXPIRATION_SECOND * 1000,
    "x-overflow": X_OVERFLOW  # 拒绝
}
Variable name value Description
LLMBOT_STOP_REPLY 1 Stop receiver from replying if the value is 1
LLMBOT_LOG_OUTPUT DEBUG Print LONG debug log on the screen if the value is DEBUG