mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-26 08:22:36 +00:00
合入 W2-a 的复核修复(nr8/a:导入的 NOT NULL 补值与孤儿行、收尾 dispose、sslmode 换算、PostgreSQL 写入去 NUL、不分大小写搜索 contains_ci、json_eq 两库同语义、JSON 守卫、用户可见列表补决胜键、bubblewrap --clearenv、部署脚本与原子写的几处、README 连接数预算)
# Conflicts: # backend/app/api/schedules.py # backend/app/main.py
This commit is contained in:
@@ -120,7 +120,7 @@ async def pick_base(session: Any, target: Run, *, schedule_only: bool = False) -
|
||||
Run.created_at < target.created_at)
|
||||
base = (await session.execute(
|
||||
select(Run).where(*earlier, Run.status == "succeeded", Run.manifest_hash.is_not(None))
|
||||
.order_by(Run.created_at.desc()).limit(1))).scalars().first()
|
||||
.order_by(Run.created_at.desc(), Run.id.desc()).limit(1))).scalars().first()
|
||||
if base is None:
|
||||
continue
|
||||
between = await session.scalar(select(func.count()).select_from(Run).where(
|
||||
|
||||
Reference in New Issue
Block a user