refactor(background): enhance BackgroundTask and VisualRecognitionTaskProcessor structure and logging

This commit is contained in:
shiyu
2025-06-08 16:48:47 +08:00
parent d46b87449c
commit 4ef4b2056b
8 changed files with 108 additions and 84 deletions
@@ -11,7 +11,6 @@ public class QueuedHostedService(
try
{
// 从数据库恢复未完成的任务
using var scope = serviceProvider.CreateScope();
var backgroundTaskQueue = scope.ServiceProvider.GetRequiredService<IBackgroundTaskQueue>();
await backgroundTaskQueue.RestoreUnfinishedTasksAsync();