Revert "Fix: Handle project deletion errors in autoidlepc"

This reverts commit c92188cad4f93a5ed0a74739f315605bf9c0488d.
This commit is contained in:
YueGuobin 2026-05-06 00:59:05 +08:00
parent c92188cad4
commit a67cd66b60
No known key found for this signature in database

View File

@ -842,14 +842,7 @@ class Controller:
compute = self.get_compute(compute_id)
for project in list(self._projects.values()):
if project.name == "AUTOIDLEPC":
try:
await project.delete()
except ControllerForbiddenError as e:
# Project couldn't be deleted due to disconnected computes
log.warning(f"Could not delete AUTOIDLEPC project '{project.id}': {e}")
except ControllerError as e:
log.warning(f"Error deleting AUTOIDLEPC project '{project.id}': {e}")
# Always remove from controller to allow creating a new one
await project.delete()
self.remove_project(project)
project = await self.add_project(name="AUTOIDLEPC")
node = await project.add_node(