From 0610f0db0a73b5bd26740028c3282cd31e6264e6 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Thu, 5 Mar 2026 23:53:53 +0800 Subject: [PATCH] fix: pipeline scheduler not found after creating platform bot via using 'create new config' (#5776) --- astrbot/dashboard/routes/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astrbot/dashboard/routes/config.py b/astrbot/dashboard/routes/config.py index 823d0fb9d..bcd7e075c 100644 --- a/astrbot/dashboard/routes/config.py +++ b/astrbot/dashboard/routes/config.py @@ -610,6 +610,7 @@ class ConfigRoute(Route): try: conf_id = self.acm.create_conf(name=name, config=config) + await self.core_lifecycle.reload_pipeline_scheduler(conf_id) return Response().ok(message="创建成功", data={"conf_id": conf_id}).__dict__ except ValueError as e: return Response().error(str(e)).__dict__ @@ -649,6 +650,7 @@ class ConfigRoute(Route): try: success = self.acm.delete_conf(conf_id) if success: + self.core_lifecycle.pipeline_scheduler_mapping.pop(conf_id, None) return Response().ok(message="删除成功").__dict__ return Response().error("删除失败").__dict__ except ValueError as e: