@@ -2,7 +2,7 @@ import { WorkerInstanceGroup, WorkerInstanceGroupType } from "@trigger.dev/datab
22import { WithRunEngine } from "../baseService.server" ;
33import { WorkerGroupTokenService } from "./workerGroupTokenService.server" ;
44import { logger } from "~/services/logger.server" ;
5- import { makeFlags , makeSetFlags } from "~/v3/featureFlags.server" ;
5+ import { FEATURE_FLAG , makeFlags , makeSetFlags } from "~/v3/featureFlags.server" ;
66
77export class WorkerGroupService extends WithRunEngine {
88 private readonly defaultNamePrefix = "worker_group" ;
@@ -49,14 +49,14 @@ export class WorkerGroupService extends WithRunEngine {
4949
5050 const getFlag = makeFlags ( this . _prisma ) ;
5151 const defaultWorkerInstanceGroupId = await getFlag ( {
52- key : " defaultWorkerInstanceGroupId" ,
52+ key : FEATURE_FLAG . defaultWorkerInstanceGroupId ,
5353 } ) ;
5454
5555 // If there's no global default yet we should set it to the new worker group
5656 if ( ! defaultWorkerInstanceGroupId ) {
5757 const setFlag = makeSetFlags ( this . _prisma ) ;
5858 await setFlag ( {
59- key : " defaultWorkerInstanceGroupId" ,
59+ key : FEATURE_FLAG . defaultWorkerInstanceGroupId ,
6060 value : workerGroup . id ,
6161 } ) ;
6262 }
@@ -169,7 +169,7 @@ export class WorkerGroupService extends WithRunEngine {
169169 const flags = makeFlags ( this . _prisma ) ;
170170
171171 const defaultWorkerInstanceGroupId = await flags ( {
172- key : " defaultWorkerInstanceGroupId" ,
172+ key : FEATURE_FLAG . defaultWorkerInstanceGroupId ,
173173 } ) ;
174174
175175 if ( ! defaultWorkerInstanceGroupId ) {
0 commit comments