Fix expired ingest task stuck state

This commit is contained in:
2026-07-19 22:17:35 +08:00
parent 12b7e31783
commit 4327b94fd0
4 changed files with 26 additions and 4 deletions
@@ -81,7 +81,8 @@ public class IngestController {
public Result<IngestStatusResponse> statusById(@PathVariable("taskId") String taskId) {
ProgressMessage pm = progressStore.get(taskId);
if (pm == null) {
return Result.success(new IngestStatusResponse(taskId, running.get(), false,
boolean isRunning = running.get();
return Result.success(new IngestStatusResponse(taskId, isRunning, !isRunning,
0, 0, 0, 0, 0, 0, 0, 0, "未找到任务或已过期"));
}