Skip to content

Commit 892fd9f

Browse files
committed
disable advisory locks
1 parent cbe9317 commit 892fd9f

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

apps/webapp/app/services/runs/startRun.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ export class StartRunService {
6464
await $transaction(
6565
this.#prismaClient,
6666
async (tx) => {
67-
await tx.$executeRaw`SELECT pg_advisory_xact_lock(${lockId})`;
68-
6967
const counter = await tx.jobCounter.upsert({
7068
where: { jobId: run.jobId },
7169
update: { lastNumber: { increment: 1 } },

apps/webapp/app/services/sources/handleWebhookRequest.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export class HandleWebhookRequestService {
3737
const lockId = webhookIdToLockId(webhookEnvironment.webhookId);
3838

3939
await this.#prismaClient.$transaction(async (tx) => {
40-
await tx.$executeRaw`SELECT pg_advisory_xact_lock(${lockId})`;
41-
4240
const counter = await tx.webhookDeliveryCounter.upsert({
4341
where: { webhookId: webhookEnvironment.id },
4442
update: { lastNumber: { increment: 1 } },

apps/webapp/app/v3/services/triggerTask.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ export class TriggerTaskService extends BaseService {
8888
const lockId = taskIdentifierToLockId(taskId);
8989

9090
const run = await $transaction(this._prisma, async (tx) => {
91-
await tx.$executeRaw`SELECT pg_advisory_xact_lock(${lockId})`;
92-
9391
const lockedToBackgroundWorker = body.options?.lockToVersion
9492
? await tx.backgroundWorker.findUnique({
9593
where: {

0 commit comments

Comments
 (0)