@open-mercato/cli 0.6.3-develop.3602.1.8287bc577d → 0.6.3-develop.3609.1.01983ef87a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2309,10 +2309,19 @@ async function startEphemeralEnvironment(options) {
2309
2309
  JWT_SECRET: process.env.JWT_SECRET ?? "om-ephemeral-integration-jwt-secret",
2310
2310
  OM_SECURITY_MFA_SETUP_SECRET: process.env.OM_SECURITY_MFA_SETUP_SECRET ?? "om-ephemeral-integration-mfa-setup-secret",
2311
2311
  NODE_ENV: "production",
2312
- DB_POOL_MIN: "0",
2313
- DB_POOL_MAX: "5",
2314
- DB_POOL_IDLE_TIMEOUT: "1000",
2315
- DB_POOL_ACQUIRE_TIMEOUT: "10000",
2312
+ // Pool sizing for the ephemeral integration runtime. Defaults were once
2313
+ // very aggressive (max=5, idle=1000) which exposed flaky 'timeout exceeded
2314
+ // when trying to connect' errors on `progressService.createJob`-backed
2315
+ // endpoints (sync_excel.import, data_sync.run, progress.jobs) — each
2316
+ // request acquires a transaction connection plus a separate connection
2317
+ // for the encryption subscriber's fetchMap probe, and with 1s idle close
2318
+ // the pool thrashes faster than pg-pool can repopulate. These values
2319
+ // still keep the pool tighter than production but give enough headroom
2320
+ // for the legitimate query bursts.
2321
+ DB_POOL_MIN: "2",
2322
+ DB_POOL_MAX: "20",
2323
+ DB_POOL_IDLE_TIMEOUT: "10000",
2324
+ DB_POOL_ACQUIRE_TIMEOUT: "15000",
2316
2325
  DB_IDLE_SESSION_TIMEOUT_MS: "30000",
2317
2326
  DB_IDLE_IN_TRANSACTION_TIMEOUT_MS: "30000",
2318
2327
  OM_INTEGRATION_TEST: "true",