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

View File

@@ -17,11 +17,7 @@ namespace Foxel.Services.Background.Processors
public int? UserIdForPicture { get; set; }
}
public class VisualRecognitionPayload // Define new payload
{
public int PictureId { get; set; }
public int? UserIdForPicture { get; set; }
}
public class PictureTaskProcessor : ITaskProcessor
{