fix(runtime): bound cloud db query timeout (#1979)

This commit is contained in:
Lyon
2026-06-23 19:00:00 +08:00
committed by GitHub
parent 1693947b58
commit 64bee6e784
4 changed files with 17 additions and 2 deletions
+3
View File
@@ -1004,6 +1004,9 @@ function runtimeStoreEnvForProfile(deploy, profile, serviceId) {
if (Number.isInteger(postgres.connectionTimeoutMs)) {
env.HWLAB_CLOUD_DB_PROBE_TIMEOUT_MS = String(postgres.connectionTimeoutMs);
}
if (Number.isInteger(postgres.queryTimeoutMs)) {
env.HWLAB_CLOUD_DB_QUERY_TIMEOUT_MS = String(postgres.queryTimeoutMs);
}
if (Number.isInteger(postgres.queryRetryMaxAttempts)) {
env.HWLAB_CLOUD_DB_QUERY_RETRY_MAX_ATTEMPTS = String(postgres.queryRetryMaxAttempts);
}