删掉原来的定时采集线程

This commit is contained in:
2025-10-29 17:13:03 +08:00
parent 85bd5254c1
commit 403d46b777
4 changed files with 0 additions and 110 deletions

View File

@@ -89,7 +89,6 @@ func (app *Application) Start() error {
// 3. 启动后台工作协程
app.Domain.Scheduler.Start()
app.Domain.TimedCollector.Start()
// 4. 启动 API 服务器
app.API.Start()
@@ -113,9 +112,6 @@ func (app *Application) Stop() error {
// 关闭任务执行器
app.Domain.Scheduler.Stop()
// 关闭定时采集器
app.Domain.TimedCollector.Stop()
// 断开数据库连接
if err := app.Infra.Storage.Disconnect(); err != nil {
app.Logger.Errorw("数据库连接断开失败", "error", err)