File tree Expand file tree Collapse file tree 3 files changed +0
-6
lines changed Expand file tree Collapse file tree 3 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,6 @@ export class StartRunService {
64
64
await $transaction (
65
65
this . #prismaClient,
66
66
async ( tx ) => {
67
- await tx . $executeRaw `SELECT pg_advisory_xact_lock(${ lockId } )` ;
68
-
69
67
const counter = await tx . jobCounter . upsert ( {
70
68
where : { jobId : run . jobId } ,
71
69
update : { lastNumber : { increment : 1 } } ,
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ export class HandleWebhookRequestService {
37
37
const lockId = webhookIdToLockId ( webhookEnvironment . webhookId ) ;
38
38
39
39
await this . #prismaClient. $transaction ( async ( tx ) => {
40
- await tx . $executeRaw `SELECT pg_advisory_xact_lock(${ lockId } )` ;
41
-
42
40
const counter = await tx . webhookDeliveryCounter . upsert ( {
43
41
where : { webhookId : webhookEnvironment . id } ,
44
42
update : { lastNumber : { increment : 1 } } ,
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ export class TriggerTaskService extends BaseService {
88
88
const lockId = taskIdentifierToLockId ( taskId ) ;
89
89
90
90
const run = await $transaction ( this . _prisma , async ( tx ) => {
91
- await tx . $executeRaw `SELECT pg_advisory_xact_lock(${ lockId } )` ;
92
-
93
91
const lockedToBackgroundWorker = body . options ?. lockToVersion
94
92
? await tx . backgroundWorker . findUnique ( {
95
93
where : {
You can’t perform that action at this time.
0 commit comments