fix(agent99): bound DB sessions and expire stale outcomes
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 4m0s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 17s

This commit is contained in:
ogt
2026-07-15 08:47:05 +08:00
parent 47586431c0
commit 0f2ddc0ce8
10 changed files with 569 additions and 37 deletions

View File

@@ -298,6 +298,16 @@ class Settings(BaseSettings):
"processes that share a constrained production role."
),
)
DATABASE_NULL_POOL_CONCURRENCY_LIMIT: int = Field(
default=0,
ge=0,
le=50,
description=(
"Per-process concurrent DB session cap when NullPool is enabled. "
"Zero leaves concurrency unchanged; bounded workers set this to "
"their verified role budget."
),
)
DATABASE_BOOTSTRAP_DDL_ENABLED: bool = Field(
default=True,
description=(