mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #265] [MERGED] feat: use a thread pool to orchestrate deployments #361
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/265
Author: @masci
Created: 9/23/2024
Status: ✅ Merged
Merged: 9/23/2024
Merged by: @logan-markewich
Base:
main← Head:massi/threadpool📝 Commits (2)
5c3b3d5use a thread pool to orchestrate deployments47f6271remove dead code📊 Changes
3 files changed (+59 additions, -32 deletions)
View changed files
📝
llama_deploy/apiserver/deployment.py(+27 -19)📝
tests/apiserver/data/git_service.yaml(+1 -1)📝
tests/apiserver/test_deployment.py(+31 -12)📄 Description
Instead of manually managing threads for each deployment, we use a
ThreadPoolto do that.Notes for the reviewer:
Deploymentclass, that now is only responsible for implementing thestarttaskmax_deploymentsparameter because it makes sense to cap the number of deployments.servemethod that runs forever to keep the thread pool alive indefinitelyUsage exampe of this version of the manager:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.