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 {
3838 // Validate it exists for the locked worker
3939 where : {
4040 name : specifiedQueueName ,
41+ runtimeEnvironmentId : request . environment . id ,
4142 workers : { some : { id : lockedBackgroundWorker . id } } , // Ensure the queue is associated with any task of the locked worker
4243 } ,
4344 } ) ;
@@ -57,6 +58,7 @@ export class DefaultQueueManager implements QueueManager {
5758 const lockedTask = await this . prisma . backgroundWorkerTask . findFirst ( {
5859 where : {
5960 workerId : lockedBackgroundWorker . id ,
61+ runtimeEnvironmentId : request . environment . id ,
6062 slug : request . taskId ,
6163 } ,
6264 include : {
@@ -144,6 +146,7 @@ export class DefaultQueueManager implements QueueManager {
144146 const task = await this . prisma . backgroundWorkerTask . findFirst ( {
145147 where : {
146148 workerId : worker . id ,
149+ runtimeEnvironmentId : environment . id ,
147150 slug : taskId ,
148151 } ,
149152 include : {
You can’t perform that action at this time.
0 commit comments