diff --git a/src/blackboard/operations.py b/src/blackboard/operations.py index edbdbc4..59c058c 100644 --- a/src/blackboard/operations.py +++ b/src/blackboard/operations.py @@ -127,6 +127,7 @@ class Blackboard: updates["completed_at"] = now elif new_status == "paused": updates["completed_at"] = now # paused 也记录时间用于恢复 + updates["resumed_from"] = old_status # 记录暂停前状态 elif new_status == "pending" and old_status == "failed": updates["retry_count"] = ( conn.execute("SELECT retry_count FROM tasks WHERE id=?",