mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-06 13:01:51 +08:00
fix(tasks): serialize no-result decisions with finding writes
This commit is contained in:
1 parent
8e030b1fbd
commit
3306e547b2
11 files changed
+369
-37
No files matched your search
@@ -76,7 +76,9 @@ func (s *Server) findingGroups(w http.ResponseWriter, r *http.Request) {
|
||||
continue
|
||||
}
|
||||
if task, ok := s.m.Task(i64s(*groups[i].TaskID)); ok {
|
||||
groups[i].TaskStatus = s.resolvedTaskStatus(task)
|
||||
state := task.lifecycleSnapshot()
|
||||
groups[i].TaskStatus = s.resolvedTaskStatusFromSnapshot(task, state)
|
||||
groups[i].TaskStopReason = state.StopReason
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user