mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
update lock time for permission backfill
This commit is contained in:
@@ -688,7 +688,7 @@ export const backfillUserAuthMethods = async () => {
|
|||||||
|
|
||||||
export const backfillPermission = async () => {
|
export const backfillPermission = async () => {
|
||||||
const lockKey = "backfill_permission_lock";
|
const lockKey = "backfill_permission_lock";
|
||||||
const timeout = 5000; // Lock timeout in milliseconds
|
const timeout = 360000; // 6 min lock timeout in milliseconds
|
||||||
const lock = await redisClient?.set(lockKey, 1, "PX", timeout, "NX");
|
const lock = await redisClient?.set(lockKey, 1, "PX", timeout, "NX");
|
||||||
|
|
||||||
if (lock) {
|
if (lock) {
|
||||||
|
|||||||
Reference in New Issue
Block a user