From fb5a10e3bf14b080be6b282f020669161b32bb25 Mon Sep 17 00:00:00 2001 From: Lux Barker Date: Mon, 23 Mar 2026 14:53:21 -0700 Subject: [PATCH] fix: use flashBootType, not -fb --- api/endpoint.go | 1 + cmd/project/functions.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api/endpoint.go b/api/endpoint.go index e2f2be9d..1a34160b 100644 --- a/api/endpoint.go +++ b/api/endpoint.go @@ -32,6 +32,7 @@ type CreateEndpointInput struct { ScalerValue int `json:"scalerValue"` WorkersMin int `json:"workersMin"` WorkersMax int `json:"workersMax"` + FlashBootType string `json:"flashBootType"` } // there are many more fields in the result of the query but I just care about these for CLI port diff --git a/cmd/project/functions.go b/cmd/project/functions.go index 856d0c9c..c8cffc50 100644 --- a/cmd/project/functions.go +++ b/cmd/project/functions.go @@ -578,7 +578,7 @@ func deployProject(networkVolumeId string) (endpointId string, err error) { minWorkers := 0 maxWorkers := 3 flashboot := true - flashbootSuffix := " -fb" + flashBootType := "FLASHBOOT" idleTimeout := 5 endpointConfig, ok := config.Get("endpoint").(*toml.Tree) if ok { @@ -592,7 +592,7 @@ func deployProject(networkVolumeId string) (endpointId string, err error) { flashboot = fb } if !flashboot { - flashbootSuffix = "" + flashBootType = "OFF" } if idle, ok := endpointConfig.Get("idle_timeout").(int64); ok { idleTimeout = int(idle) @@ -600,7 +600,7 @@ func deployProject(networkVolumeId string) (endpointId string, err error) { } if err != nil { deployedEndpointId, err = api.CreateEndpoint(&api.CreateEndpointInput{ - Name: fmt.Sprintf("%s-endpoint-%s%s", projectName, projectId, flashbootSuffix), + Name: fmt.Sprintf("%s-endpoint-%s", projectName, projectId), TemplateId: projectEndpointTemplateId, NetworkVolumeId: networkVolumeId, GpuIds: "AMPERE_16", @@ -609,6 +609,7 @@ func deployProject(networkVolumeId string) (endpointId string, err error) { ScalerValue: 4, WorkersMin: minWorkers, WorkersMax: maxWorkers, + FlashBootType: flashBootType, }) if err != nil { fmt.Println("error making endpoint")