Skip to content

Commit 3745a8a

Browse files
committed
chore(webapp): the retire queries use bounded in-filters
1 parent 16862f6 commit 3745a8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/webapp/app/v3/services/createBackgroundWorker.server.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ async function retireStaleAnonymousConcurrencyLimitRows(
417417
where: {
418418
runtimeEnvironmentId: environment.id,
419419
role: "LIMIT",
420-
name: { in: candidateNames },
420+
name: { in: boundedIn(candidateNames) },
421421
OR: [{ concurrencyLimit: { not: null } }, { totalConcurrencyLimit: { not: null } }],
422422
},
423423
select: { id: true, name: true },
@@ -427,7 +427,7 @@ async function retireStaleAnonymousConcurrencyLimitRows(
427427
}
428428

429429
await prisma.taskQueue.updateMany({
430-
where: { id: { in: staleRows.map((row) => row.id) } },
430+
where: { id: { in: boundedIn(staleRows.map((row) => row.id)) } },
431431
data: {
432432
concurrencyLimit: null,
433433
concurrencyLimitBase: null,

0 commit comments

Comments
 (0)