🐛 Dozens of bug fixes to new task system

This commit is contained in:
2025-11-10 00:14:41 +08:00
parent db98fa240e
commit 2bfb50cc71
4 changed files with 192 additions and 76 deletions

View File

@@ -293,10 +293,10 @@ public class FileUploadController(
persistentTask.ExpiredAt
);
// Mark task as completed
await persistentTaskService.MarkTaskCompletedAsync(taskId);
// Update task status to "processing" - background processing is now happening
await persistentTaskService.UpdateTaskProgressAsync(taskId, 95, "Processing file in background...");
// Send completion notification
// Send upload completion notification (file is uploaded, but processing continues)
await persistentTaskService.SendUploadCompletedNotificationAsync(persistentTask, fileId);
return Ok(cloudFile);