mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-20 00:41: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
@@ -1288,6 +1288,10 @@ func (s *Server) resolvedTaskStatus(t *Task) string {
|
||||
return "created"
|
||||
}
|
||||
lifecycle := t.lifecycleSnapshot()
|
||||
return s.resolvedTaskStatusFromSnapshot(t, lifecycle)
|
||||
}
|
||||
|
||||
func (s *Server) resolvedTaskStatusFromSnapshot(t *Task, lifecycle taskLifecycleState) string {
|
||||
switch {
|
||||
case isTerminalStatus(lifecycle.Status):
|
||||
return lifecycle.Status
|
||||
|
||||
Reference in new issue
Block a user