You've already forked agentic-coding-workflow
ACP / MCP 完善
This commit is contained in:
@@ -45,6 +45,11 @@ UPDATE acp_sessions
|
||||
SET status = $2, exit_code = $3, last_error = $4, ended_at = now()
|
||||
WHERE id = $1;
|
||||
|
||||
-- name: MarkSessionFailedIfActive :execrows
|
||||
UPDATE acp_sessions
|
||||
SET status = 'crashed', last_error = $2, ended_at = now()
|
||||
WHERE id = $1 AND status IN ('starting', 'running');
|
||||
|
||||
-- name: CountActiveSessions :one
|
||||
SELECT COUNT(*) FROM acp_sessions WHERE status IN ('starting', 'running');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user