refactor(llm): 调整数据集同步任务频率并添加日志输出

- 将数据集同步任务的执行频率从每分钟改为每 30 秒
- 在文件上传过程中添加日志输出,便于监控和调试
This commit is contained in:
sunxiqing 2025-08-11 19:31:56 +08:00
parent f2e02db09b
commit 1339697bd4
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class DatasetTaskSyncService {
@Resource
private AsyncDataSetService dataSetService;
@Scheduled(cron ="0/60 * * * * ?")
@Scheduled(cron ="0/30 * * * * ?")
public void syncDatasetAigcTask() {
log.info("[syncDatasetAigcTask][开始同步任务]");
// 查询已经标注完成的数据集

View File

@ -315,6 +315,7 @@ public class TrainHttpService {
headers.remove("Content-Type");
try {
// 上传文件
log.info("开始上传文件:{}",url);
HttpResponse<String> uploadResponse = Unirest.post(url + aigcFileUpload)
.headers(headers)
.field("file", inputStream, fileName)