修复bug
This commit is contained in:
@@ -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 {
|
||||
s.logger.Errorf("获取计划 %d 的基本信息失败: %v", planID, err)
|
||||
s.logger.Errorf("获取计划 %d 的完整信息失败: %v", planID, err) // Updated error message
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user