File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ $isLockAcquired = $postgresLocker->acquireLock(
4040 $dbConnection,
4141 $postgresLockId,
4242 \Cog\DbLocker\Locker\PostgresAdvisoryLockScopeEnum::Transaction,
43+ \Cog\DbLocker\Locker\PostgresAdvisoryLockTypeEnum::NonBlocking,
44+ \Cog\DbLocker\Locker\PostgresLockModeEnum::Exclusive,
4345);
4446if ($isLockAcquired) {
4547 // Execute logic if lock was successful
@@ -61,6 +63,8 @@ $isLockAcquired = $postgresLocker->acquireLock(
6163 $dbConnection,
6264 $postgresLockId,
6365 \Cog\DbLocker\Locker\PostgresAdvisoryLockScopeEnum::Session,
66+ \Cog\DbLocker\Locker\PostgresAdvisoryLockTypeEnum::NonBlocking,
67+ \Cog\DbLocker\Locker\PostgresLockModeEnum::Exclusive,
6468);
6569if ($isLockAcquired) {
6670 // Execute logic if lock was successful
You can’t perform that action at this time.
0 commit comments