feat: add prompt-first batches and pausable task guidance
This commit is contained in:
1 parent
cec9898e4c
commit
057f0c3050
44 files changed
+1080
-191
No files matched your search
@@ -422,7 +422,7 @@ class SessionRepository:
|
||||
return count
|
||||
|
||||
def reconcile_orphaned_sessions(self) -> int:
|
||||
"""Mark running sessions with no live worker process as failed.
|
||||
"""Mark running sessions with no live worker process as interrupted.
|
||||
|
||||
This is safe to call both during startup and immediately after a
|
||||
forced server stop: live workers, including workers owned by another
|
||||
@@ -442,14 +442,14 @@ class SessionRepository:
|
||||
cursor.execute(
|
||||
"UPDATE sessions SET status = ?, end_time = ? "
|
||||
"WHERE session_id = ? AND status = ?",
|
||||
("failed", now, row["session_id"], "running"),
|
||||
("interrupted", now, row["session_id"], "running"),
|
||||
)
|
||||
count += cursor.rowcount
|
||||
try:
|
||||
if trace_store.read_status(str(row["session_id"])):
|
||||
trace_store.update_trace_status(
|
||||
str(row["session_id"]),
|
||||
"failed",
|
||||
"interrupted",
|
||||
error="Process terminated prior to server startup.",
|
||||
)
|
||||
except OSError as exc:
|
||||
|
||||
Reference in new issue
Block a user