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(
40
40
$dbConnection,
41
41
$postgresLockId,
42
42
\Cog\DbLocker\Locker\PostgresAdvisoryLockScopeEnum::Transaction,
43
+ \Cog\DbLocker\Locker\PostgresAdvisoryLockTypeEnum::NonBlocking,
44
+ \Cog\DbLocker\Locker\PostgresLockModeEnum::Exclusive,
43
45
);
44
46
if ($isLockAcquired) {
45
47
// Execute logic if lock was successful
@@ -61,6 +63,8 @@ $isLockAcquired = $postgresLocker->acquireLock(
61
63
$dbConnection,
62
64
$postgresLockId,
63
65
\Cog\DbLocker\Locker\PostgresAdvisoryLockScopeEnum::Session,
66
+ \Cog\DbLocker\Locker\PostgresAdvisoryLockTypeEnum::NonBlocking,
67
+ \Cog\DbLocker\Locker\PostgresLockModeEnum::Exclusive,
64
68
);
65
69
if ($isLockAcquired) {
66
70
// Execute logic if lock was successful
You can’t perform that action at this time.
0 commit comments