mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-09-05 07:36:53 +08:00
refactor(background): enhance BackgroundTask and VisualRecognitionTaskProcessor structure and logging
This commit is contained in:
@@ -11,7 +11,6 @@ public class QueuedHostedService(
|
||||
|
||||
try
|
||||
{
|
||||
// 从数据库恢复未完成的任务
|
||||
using var scope = serviceProvider.CreateScope();
|
||||
var backgroundTaskQueue = scope.ServiceProvider.GetRequiredService<IBackgroundTaskQueue>();
|
||||
await backgroundTaskQueue.RestoreUnfinishedTasksAsync();
|
||||
|
||||
Reference in New Issue
Block a user