Version: 0.9.63.dev.260503
后端: 1. 主动调度 `unfinished_feedback` 候选生成收口——仅在反馈目标可定位到 `task_item` 时生成 `create_makeup`,课程块与 `target_id=0` 继续回退 `ask_user`,避免生成会被 apply 层拦截的无效预览
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -19,6 +19,7 @@ backend/config.yaml
|
||||
*.log
|
||||
/tmp/
|
||||
/frontend/dist/
|
||||
/scripts/
|
||||
|
||||
# 5. IDE 与系统文件
|
||||
.idea/
|
||||
|
||||
@@ -149,6 +149,9 @@ func (g *Generator) addTaskPoolCandidate(ctx *schedulercontext.ActiveScheduleCon
|
||||
}
|
||||
|
||||
func (g *Generator) createMakeupCandidate(ctx *schedulercontext.ActiveScheduleContext) (Candidate, bool) {
|
||||
if ctx == nil || ctx.FeedbackFacts.TargetTaskItemID <= 0 {
|
||||
return Candidate{}, false
|
||||
}
|
||||
span, ok := firstContiguousFreeSpan(ctx.ScheduleFacts.FreeSlots, 1)
|
||||
if !ok {
|
||||
return Candidate{}, false
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user