Reapply "为长任务插件接入后台任务模式"

This reverts commit a9c3518b4a.
This commit is contained in:
Liu
2026-05-01 12:45:30 +08:00
parent 47d623e4a4
commit e54d04e3b7
7 changed files with 350 additions and 77 deletions

View File

@@ -1,6 +1,13 @@
environment: "${ABOT_ENVIRONMENT:development}"
plugin_dir: "${ABOT_PLUGIN_DIR:plugins}"
runtime:
# 后台长任务插件专用并发池大小:
# 1. 当前前台消息处理仍然保留固定 20 并发槽位;
# 2. 配置为 background 的长任务插件会转入这个独立池执行,不再长期占住前台槽位;
# 3. 如果模型/截图/报表类任务较多,可以适当调大;若机器较弱,建议保守一些。
background_plugin_max_concurrency: "${ABOT_BACKGROUND_PLUGIN_MAX_CONCURRENCY:6}"
db_config:
pool_name: "${ABOT_DB_POOL_NAME:wechat_boot_pool}"
pool_size: "${ABOT_DB_POOL_SIZE:10}"