auto-sync: 2026-05-18 12:07:58
This commit is contained in:
@@ -258,14 +258,14 @@ class Queries:
|
|||||||
if status_counts.get("pending", 0) > 0:
|
if status_counts.get("pending", 0) > 0:
|
||||||
return "pending"
|
return "pending"
|
||||||
|
|
||||||
|
# 有 failed → failed(优先于 blocked:失败比等待更严重)
|
||||||
|
if status_counts.get("failed", 0) > 0:
|
||||||
|
return "failed"
|
||||||
|
|
||||||
# 有 blocked → blocked
|
# 有 blocked → blocked
|
||||||
if status_counts.get("blocked", 0) > 0:
|
if status_counts.get("blocked", 0) > 0:
|
||||||
return "blocked"
|
return "blocked"
|
||||||
|
|
||||||
# 有 failed → failed
|
|
||||||
if status_counts.get("failed", 0) > 0:
|
|
||||||
return "failed"
|
|
||||||
|
|
||||||
return parent_row["status"]
|
return parent_row["status"]
|
||||||
finally:
|
finally:
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user