From b5e174e683f1c0cab9a7d27dc4129a6fd46e16bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Mon, 17 Mar 2025 11:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E5=B1=8F=E8=94=BD=20=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=BC=93=E5=AD=98=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VideoAnalysis/Expand/CoravelExpand.cs | 4 ++-- VideoAnalysisCore/Common/RedisExpand.cs | 1 + VideoAnalysisCore/Job/TaskFileClearJob.cs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/VideoAnalysis/Expand/CoravelExpand.cs b/VideoAnalysis/Expand/CoravelExpand.cs index 3e43beb..5502b5d 100644 --- a/VideoAnalysis/Expand/CoravelExpand.cs +++ b/VideoAnalysis/Expand/CoravelExpand.cs @@ -27,8 +27,8 @@ namespace Learn.VideoAnalysis.Expand { //每5分钟执行一次 未处理视频扫描 scheduler.Schedule().EveryFiveMinutes(); - //每天两点 - scheduler.Schedule().HourlyAt(10); + //每天02:10 + // scheduler.Schedule().HourlyAt(10); }); } } diff --git a/VideoAnalysisCore/Common/RedisExpand.cs b/VideoAnalysisCore/Common/RedisExpand.cs index 5f7a9f2..91f997a 100644 --- a/VideoAnalysisCore/Common/RedisExpand.cs +++ b/VideoAnalysisCore/Common/RedisExpand.cs @@ -9,6 +9,7 @@ using System.Text.Json; using System.Threading.Channels; using System.Threading.Tasks; using System.Xml.Linq; +using UserCenter.Model.Enum; using VideoAnalysisCore.AICore.FFMPGE; using VideoAnalysisCore.AICore.GPT; using VideoAnalysisCore.AICore.GPT.Dto; diff --git a/VideoAnalysisCore/Job/TaskFileClearJob.cs b/VideoAnalysisCore/Job/TaskFileClearJob.cs index 248b8bf..f3e4aef 100644 --- a/VideoAnalysisCore/Job/TaskFileClearJob.cs +++ b/VideoAnalysisCore/Job/TaskFileClearJob.cs @@ -42,8 +42,8 @@ namespace VideoAnalysisCore.Job var completedTasks = videotaskDB.AsQueryable() .Where(t => t.LastEnum == Model.Enum.RedisChannelEnum.EndTask - && t.CreateTime < twoDaysAgo - && t.CreateTime > endDaysAgo) + && t.EndTime < twoDaysAgo + && t.EndTime > endDaysAgo) .ToList(); // 遍历查询结果,删除缓存文件