File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
apps/webapp/app/runEngine/concerns Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export class DefaultQueueManager implements QueueManager {
38
38
// Validate it exists for the locked worker
39
39
where : {
40
40
name : specifiedQueueName ,
41
+ runtimeEnvironmentId : request . environment . id ,
41
42
workers : { some : { id : lockedBackgroundWorker . id } } , // Ensure the queue is associated with any task of the locked worker
42
43
} ,
43
44
} ) ;
@@ -57,6 +58,7 @@ export class DefaultQueueManager implements QueueManager {
57
58
const lockedTask = await this . prisma . backgroundWorkerTask . findFirst ( {
58
59
where : {
59
60
workerId : lockedBackgroundWorker . id ,
61
+ runtimeEnvironmentId : request . environment . id ,
60
62
slug : request . taskId ,
61
63
} ,
62
64
include : {
@@ -144,6 +146,7 @@ export class DefaultQueueManager implements QueueManager {
144
146
const task = await this . prisma . backgroundWorkerTask . findFirst ( {
145
147
where : {
146
148
workerId : worker . id ,
149
+ runtimeEnvironmentId : environment . id ,
147
150
slug : taskId ,
148
151
} ,
149
152
include : {
You can’t perform that action at this time.
0 commit comments