We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765ca90 commit 7914209Copy full SHA for 7914209
src/bin/commands/build.ts
@@ -149,6 +149,16 @@ export const buildCommand: yargs.CommandModule<
149
updateSpinnerMessage(index, "Starting sandbox...", sandboxId)
150
);
151
152
+ // This is a hack, we need to tell the global scheduler that the VM is running
153
+ // in a different cluster than the one it'd like to default to.
154
+ const baseUrl = apiClient
155
+ .getConfig()
156
+ .baseUrl?.replace("api", "global-scheduler");
157
+
158
+ await fetch(
159
+ `${baseUrl}/api/v1/cluster/${sandboxId}?preferredManager=${cluster}`
160
+ ).then((res) => res.json());
161
162
const startResponse = await startVm(clusterApiClient, sandboxId, {
163
vmTier: VMTier.fromName("Micro"),
164
});
0 commit comments