修复bug

This commit is contained in:
2025-09-22 18:27:14 +08:00
parent a5d6c81f3a
commit 806f1cf5ef

View File

@@ -271,9 +271,9 @@ func (s *Scheduler) processTask(claimedLog *models.TaskExecutionLog) {
} }
// 获取计划的最新数据 // 获取计划的最新数据
plan, err := s.planRepo.GetBasicPlanByID(planID) plan, err := s.planRepo.GetPlanByID(planID) // Changed to GetPlanByID to include sub-plans
if err != nil { if err != nil {
s.logger.Errorf("获取计划 %d 的基本信息失败: %v", planID, err) s.logger.Errorf("获取计划 %d 的完整信息失败: %v", planID, err) // Updated error message
return return
} }