[cleanup] Remove dead code do_update_all function

- Removed do_update_all function that was never called and only returned an error
- Removed "update-all" from OperationType enum as it's no longer used
- Regenerated data models to reflect the enum change

The update_all functionality now properly creates individual update tasks through the API endpoint rather than being a single monolithic task.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
bymyself
2025-06-17 13:27:51 -07:00
parent 14298b0859
commit d081db0c30
3 changed files with 74 additions and 33 deletions

View File

@@ -992,12 +992,6 @@ async def task_worker():
return f"Model installation error: {model_url}"
async def do_update_all(params: UpdateAllPacksParams):
# For update-all tasks, we need client info from the original task
# This should not be called anymore since update_all now creates individual tasks
return "error: update_all should create individual tasks, not use task worker"
while True:
timeout = 4096
task = task_queue.get(timeout)