feat: atomic extract-and-connect + stale PR monitor + response audit #4
1 changed files with 2 additions and 0 deletions
|
|
@ -520,6 +520,8 @@ async def evaluate_cycle(conn, max_workers=None) -> tuple[int, int]:
|
||||||
AND (p.last_attempt IS NULL
|
AND (p.last_attempt IS NULL
|
||||||
OR p.last_attempt < datetime('now', '-10 minutes'))
|
OR p.last_attempt < datetime('now', '-10 minutes'))
|
||||||
ORDER BY
|
ORDER BY
|
||||||
|
-- Fresh PRs before re-evals: unevaluated PRs have higher chance of passing
|
||||||
|
CASE WHEN COALESCE(p.eval_attempts, 0) = 0 THEN 0 ELSE 1 END,
|
||||||
CASE COALESCE(p.priority, s.priority, 'medium')
|
CASE COALESCE(p.priority, s.priority, 'medium')
|
||||||
WHEN 'critical' THEN 0
|
WHEN 'critical' THEN 0
|
||||||
WHEN 'high' THEN 1
|
WHEN 'high' THEN 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue