refactor(workservice): 迁移AI批改逻辑到定时任务,移除消费端评分逻辑

1. 新增JournalTaskAiScoreJob定时任务,实现周期性扫描处理期刊答题记录AI批改
2. 调整appsettings.json配置,新增定时任务配置与相关参数
3. 重构JournalTaskReceiveConsumer,移除原有的AI评分相关代码,仅保留答题记录保存逻辑
4. 优化任务查询条件,支持分组任务查询
This commit is contained in:
glz
2026-07-08 18:00:44 +08:00
parent de9a0c2978
commit 4bb03aa0df
3 changed files with 973 additions and 765 deletions

View File

@ -47,6 +47,14 @@
"Cron": "* * * * *",
"Enabled": false,
"Description": "示例任务(默认关闭,仅用于验证框架运行)"
},
{
"Name": "journal-task-ai-score-job",
"JobType": "QYZH.InteractiveMagazine.WorkService.Jobs.JournalTaskAiScoreJob",
"MethodName": "Execute",
"Cron": "*/30 * * * *",
"Enabled": true,
"Description": "每30分钟扫描上次执行到本次执行之间的期刊答题记录并提交AI批改"
}
]
},
@ -62,7 +70,8 @@
"ScoreRetryDelayMilliseconds": 1000,
"MaxImageBytes": 10485760,
"CompletionThreshold": 80,
"CommunityScoreThreshold": 90
"PendingAnswerMinutes": 30,
"PendingAnswerBatchSize": 100
},
"AllowedHosts": "*",
"AliyunOSSConfigs": {