Skip to content

Commit c0b08d0

Browse files
committed
fix comment
1 parent e6fea2e commit c0b08d0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

rock/sandbox/service/deployment_service.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class AbstractDeploymentService():
2121
@abstractmethod
22-
async def is_deployment_alive(self, sandbox_id) -> bool:
22+
async def is_deployment_alive(self, sandbox_id: str) -> bool:
2323
...
2424

2525
@abstractmethod
@@ -28,26 +28,26 @@ async def submit(self, config: DeploymentConfig, user_info: dict) -> SandboxInfo
2828
...
2929

3030
@abstractmethod
31-
async def get_status(self, *args, **kwargs) -> SandboxInfo:
31+
async def get_status(self, sandbox_id: str) -> SandboxInfo:
3232
"""Get status of sandbox."""
3333
...
3434

3535
@abstractmethod
36-
async def stop(self, *args, **kwargs):
36+
async def stop(self, sandbox_id: str):
3737
"""Stop sandbox."""
3838

3939
@abstractmethod
40-
async def get_mount(self, *args, **kwargs):
40+
async def get_mount(self, sandbox_id: str):
4141
"""Get mount of sandbox."""
4242
...
4343

4444
@abstractmethod
45-
async def get_sandbox_statistics(self, *args, **kwargs):
45+
async def get_sandbox_statistics(self, sandbox_id: str):
4646
"""Get sandbox statistics."""
4747
...
4848

4949
@abstractmethod
50-
async def commit(self, *args, **kwargs) -> CommandResponse:
50+
async def commit(self, sandbox_id: str, image_tag: str, username: str, password: str) -> CommandResponse:
5151
...
5252

5353
@abstractmethod

rock/sandbox/service/sandbox_proxy_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ async def create_session(self, request: CreateSessionRequest) -> CreateBashSessi
8888
sandbox_id = request.sandbox_id
8989
await self._update_expire_time(sandbox_id)
9090
sandbox_status_dicts = await self.get_service_status(sandbox_id)
91-
print(f"sandbox status dicts: {sandbox_status_dicts}")
9291
response = await self._send_request(
9392
sandbox_id, sandbox_status_dicts[0], "create_session", None, request.model_dump(), None, "POST"
9493
)

0 commit comments

Comments
 (0)