fix: tune v03 postgres pool timeout

This commit is contained in:
lyon
2026-06-21 06:53:41 +08:00
parent f979919635
commit 68844aec3f
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -991,6 +991,9 @@ function runtimeStoreEnvForProfile(deploy, profile, serviceId) {
if (!postgres || typeof postgres !== "object" || Array.isArray(postgres)) return {};
const env = {};
if (Number.isInteger(postgres.poolMax)) env.HWLAB_CLOUD_DB_POOL_MAX = String(postgres.poolMax);
if (Number.isInteger(postgres.connectionTimeoutMs)) {
env.HWLAB_CLOUD_DB_PROBE_TIMEOUT_MS = String(postgres.connectionTimeoutMs);
}
return env;
}