Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/store-postgres / QUOTA_LOCK_TIMEOUT_MS

Variable: QUOTA_LOCK_TIMEOUT_MS

ts
const QUOTA_LOCK_TIMEOUT_MS: 2000 = 2_000;

Defined in: packages/store-postgres/src/quota.ts:79

How long a reserve/reconcile transaction waits for the schema-wide admission lock before postgres cancels the statement. Quota admissions are short single-writer transactions; queueing here IS the cross-host serialization working.