mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 17:28:26 +00:00
up to 10 mins
This commit is contained in:
@@ -194,7 +194,7 @@ export const auditLogDALFactory = (db: TDbClient) => {
|
|||||||
if (tx) {
|
if (tx) {
|
||||||
await runPrune(tx);
|
await runPrune(tx);
|
||||||
} else {
|
} else {
|
||||||
const QUERY_TIMEOUT_MS = 3 * 60 * 1000; // 3 minutes
|
const QUERY_TIMEOUT_MS = 10 * 60 * 1000; // 10 minutes
|
||||||
await db.transaction(async (trx) => {
|
await db.transaction(async (trx) => {
|
||||||
await trx.raw(`SET statement_timeout = ${QUERY_TIMEOUT_MS}`);
|
await trx.raw(`SET statement_timeout = ${QUERY_TIMEOUT_MS}`);
|
||||||
await runPrune(trx);
|
await runPrune(trx);
|
||||||
|
|||||||
Reference in New Issue
Block a user