!62 !61 fix: 任务创建后直接进入 running 状态,避免前端显示排队中

Merge pull request !62 from 何朝晖/develop
This commit is contained in:
2026-05-25 10:17:24 +00:00
committed by Gitee
3 changed files with 32 additions and 91 deletions
+3 -2
View File
@@ -236,8 +236,9 @@ func saveTaskToDB(ctx context.Context, projectID, taskID string, req GenerateReq
ProjectID: uint(projectIDUint),
Prompt: req.Prompt,
AssetType: req.AssetType,
Status: "pending",
Progress: 0,
Status: "running",
Progress: 5,
Stage: "prompt_builder",
RetryCount: 0,
CreatedAt: time.Now(),
UpdatedAt: time.Now(),