Stop the dev server for a project. Gracefully terminates the dev server process and all its child processes. Args: project_name: Name of the project Returns: Response indicating success/failure and current status
(project_name: str)
| 326 | |
| 327 | @router.post("/stop", response_model=DevServerActionResponse) |
| 328 | async def stop_devserver(project_name: str) -> DevServerActionResponse: |
| 329 | """ |
| 330 | Stop the dev server for a project. |
| 331 | |
| 332 | Gracefully terminates the dev server process and all its child processes. |
| 333 | |
| 334 | Args: |
| 335 | project_name: Name of the project |
| 336 | |
| 337 | Returns: |
| 338 | Response indicating success/failure and current status |
| 339 | """ |
| 340 | manager = get_project_devserver_manager(project_name) |
| 341 | |
| 342 | success, message = await manager.stop() |
| 343 | |
| 344 | return DevServerActionResponse( |
| 345 | success=success, |
| 346 | status=manager.status, |
| 347 | message=message, |
| 348 | ) |
| 349 | |
| 350 | |
| 351 | @router.get("/config", response_model=DevServerConfigResponse) |
nothing calls this directly
no test coverage detected