Skip to content

Commit ac3dadf

Browse files
committed
feat(supervisor): send machine cpu/memory in compute sandbox requests
Passes machine preset cpu and memory as top-level fields on the CreateSandboxRequest so the compute stack can use them for admission control and resource allocation.
1 parent a538735 commit ac3dadf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/supervisor/src/workloadManager/compute.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export class ComputeWorkloadManager implements WorkloadManager {
109109
body: JSON.stringify({
110110
image: imageRef,
111111
env: envVars,
112+
cpu: opts.machine.cpu,
113+
memory_gb: opts.machine.memory,
112114
metadata: {
113115
runId: opts.runFriendlyId,
114116
envId: opts.envId,

0 commit comments

Comments
 (0)