Skip to content

Commit d3c1b25

Browse files
sdk support sandbox id (alibaba#622)
* Add file cleanup task (alibaba#584) * add release note 120 * Revert "add release note 120" This reverts commit 65a11fd. * add file clean task * add file cleanup task * Sandbox CPU Preemption Support (alibaba#597) * feat: support create standard spec sandbox alibaba#538 (alibaba#539) (alibaba#571) (alibaba#603) * support create standard_spec sandbox * rename enforce_standard_spec to use_standard_spec_only * feat: add lifespan rt metrics (alibaba#590) (alibaba#605) * sdk support sandbox id --------- Co-authored-by: Fangwen DAI <34794181+FangwenDave@users.noreply.github.com>
1 parent 4acad84 commit d3c1b25

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

rock/sdk/sandbox/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ async def start(self):
175175
"registry_password": self.config.registry_password,
176176
"use_kata_runtime": self.config.use_kata_runtime,
177177
"limit_cpus": self.config.limit_cpus,
178+
"sandbox_id": self.config.sandbox_id,
178179
}
179180
try:
180181
response = await HttpUtils.post(url, headers, data)

rock/sdk/sandbox/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class SandboxConfig(BaseConfig):
4343
registry_username: str | None = None
4444
registry_password: str | None = None
4545
use_kata_runtime: bool = False
46+
sandbox_id: str | None = None
4647

4748

4849
class SandboxGroupConfig(SandboxConfig):

0 commit comments

Comments
 (0)