File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function createRunEngine() {
2727 pollIntervalMs : env . RUN_ENGINE_WORKER_POLL_INTERVAL ,
2828 } ,
2929 machines : {
30- defaultMachine : defaultMachine ,
30+ defaultMachine,
3131 machines : allMachines ( ) ,
3232 baseCostInCents : env . CENTS_PER_RUN ,
3333 } ,
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ import { CURRENT_UNMANAGED_DEPLOYMENT_LABEL } from "~/consts";
2525import { resolveVariablesForEnvironment } from "~/v3/environmentVariables/environmentVariablesRepository.server" ;
2626import { generateJWTTokenForEnvironment } from "~/services/apiAuth.server" ;
2727import { fromFriendlyId } from "@trigger.dev/core/v3/apps" ;
28+ import { machinePresetFromName } from "~/v3/machinePresets.server" ;
29+ import { defaultMachine } from "@trigger.dev/platform/v3" ;
2830
2931export class WorkerGroupTokenService extends WithRunEngine {
3032 private readonly tokenPrefix = "tr_wgt_" ;
@@ -647,12 +649,7 @@ export class AuthenticatedWorkerInstance extends WithRunEngine {
647649 isWarmStart,
648650 } ) ;
649651
650- const defaultMachinePreset = {
651- name : "small-1x" ,
652- cpu : 1 ,
653- memory : 1 ,
654- centsPerMs : 0 ,
655- } satisfies MachinePreset ;
652+ const defaultMachinePreset = machinePresetFromName ( defaultMachine ) ;
656653
657654 const environment =
658655 this . environment ??
You can’t perform that action at this time.
0 commit comments