新增 任务完成后立马删除 视频文件
This commit is contained in:
parent
1151068185
commit
0a654c72ed
|
|
@ -554,12 +554,6 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek
|
||||||
await videoKonwPointDB.InsertRangeAsync(insertData);
|
await videoKonwPointDB.InsertRangeAsync(insertData);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Console.WriteLine(DateTime.Now + $"=>{task} 得分过低/分段长度不匹配 得分{checkRes?.Score} ");
|
|
||||||
Console.WriteLine(checkRes.Evaluation);
|
|
||||||
Console.WriteLine();
|
|
||||||
}
|
|
||||||
if (questionRes.Any(s => s.KeepTime < 30))
|
if (questionRes.Any(s => s.KeepTime < 30))
|
||||||
{
|
{
|
||||||
Console.WriteLine(DateTime.Now + "=>视频分段过短!! 重新进行AI分析");
|
Console.WriteLine(DateTime.Now + "=>视频分段过短!! 重新进行AI分析");
|
||||||
|
|
@ -618,7 +612,7 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek
|
||||||
{
|
{
|
||||||
|
|
||||||
var taskId = long.Parse(task);
|
var taskId = long.Parse(task);
|
||||||
var taskInfo = await videoTaskDB.AsQueryable()
|
var taskInfo = await videoTaskDB.CopyNew().AsQueryable()
|
||||||
.Where(s => s.Id == taskId)
|
.Where(s => s.Id == taskId)
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
if (taskInfo.VideoType != null&& taskInfo.VideoType!=AttachmentsInfoType.无)
|
if (taskInfo.VideoType != null&& taskInfo.VideoType!=AttachmentsInfoType.无)
|
||||||
|
|
|
||||||
|
|
@ -291,7 +291,15 @@ namespace VideoAnalysisCore.Common
|
||||||
it.LastEnum,
|
it.LastEnum,
|
||||||
it.EndTime
|
it.EndTime
|
||||||
}).ExecuteCommandAsync();
|
}).ExecuteCommandAsync();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ExpandFunction.DeleteTaskFile(tId);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
throw;
|
||||||
|
}
|
||||||
//NewTask();
|
//NewTask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue