Stop a sandbox container without deleting it.
(&self, sandbox_name: &str)
| 613 | |
| 614 | /// Stop a sandbox container without deleting it. |
| 615 | pub async fn stop_sandbox(&self, sandbox_name: &str) -> Result<(), ComputeDriverError> { |
| 616 | let name = validated_container_name(sandbox_name)?; |
| 617 | info!(sandbox_name = %sandbox_name, container = %name, "Stopping sandbox container"); |
| 618 | |
| 619 | self.client |
| 620 | .stop_container(&name, self.config.stop_timeout_secs) |
| 621 | .await |
| 622 | .map_err(ComputeDriverError::from) |
| 623 | } |
| 624 | |
| 625 | /// Delete a sandbox container and its workspace volume. |
| 626 | pub async fn delete_sandbox( |
nothing calls this directly
no test coverage detected