chore: udpate task execute log

This commit is contained in:
duorameng
2026-04-15 09:04:06 +08:00
parent 625673654a
commit ec5cc86efe
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ func (h *ServerSchedulerHandler) OnTaskHeartbeat(req *executor.ExecutionRequest,
// 每分钟打印一次任务还在运行的日志
if duration >= 60000 && (duration/60000 > (duration-3000)/60000) {
logger.Infof("[Scheduler] 任务 #%s 仍在运行中... (已耗时: %v)",
logger.Infof("[Scheduler] 任务运行中... (#%s 已耗时: %v)",
req.TaskID, (time.Duration(duration) * time.Millisecond).Round(time.Second))
}
}
+1 -1
View File
@@ -139,7 +139,7 @@ func (s *TaskLogService) CleanTaskLogs(taskID string) {
}
if deleted > 0 {
logger.Infof("[TaskLog] 清理任务 #%s %d 条日志", taskID, deleted)
logger.Infof("[TaskLog] 清理旧日志: #%s %d 条", taskID, deleted)
}
}