File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
apps/webapp/app/v3/services Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,12 @@ export class ReplayTaskRunService extends BaseService {
5858 const payloadType = payloadPacket . dataType ;
5959 const metadata = overrideOptions . metadata ?? ( await this . getExistingMetadata ( existingTaskRun ) ) ;
6060 const tags = overrideOptions . tags ?? existingTaskRun . runTags ;
61- // Only use the region from the existing task if neither environment is a development environment
62- const region =
63- existingEnvironment . type === "DEVELOPMENT" || authenticatedEnvironment . type === "DEVELOPMENT"
64- ? undefined
65- : existingTaskRun . workerQueue ;
61+ // Only use the region from the existing run if V2 engine and neither environment is dev
62+ const ignoreRegion =
63+ existingTaskRun . engine === "V1" ||
64+ existingEnvironment . type === "DEVELOPMENT" ||
65+ authenticatedEnvironment . type === "DEVELOPMENT" ;
66+ const region = ignoreRegion ? undefined : existingTaskRun . workerQueue ;
6667
6768 try {
6869 const taskQueue = await this . _prisma . taskQueue . findFirst ( {
You can’t perform that action at this time.
0 commit comments