mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #249] [MERGED] Make services process things faster #353
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/249
Author: @logan-markewich
Created: 9/10/2024
Status: ✅ Merged
Merged: 9/11/2024
Merged by: @logan-markewich
Base:
main← Head:logan/improve_processing_loop📝 Commits (2)
23baf19Make services process things faster28c0b80add docstrings📊 Changes
1 file changed (+114 additions, -65 deletions)
View changed files
📝
llama_deploy/services/workflow.py(+114 -65)📄 Description
Currently, the
WorkflowServiceis async, but still processes incoming tasks sequentiallyWe can greatly improve throughput by taking more advantage of
asyncio.create_taskfor each incoming taskThis PR refactors the
processing_loop()of the workflow service to be a combination of a task manager and task processorIt can be argued that this should be in the base class, but we haven't cleaned up existing services yet, and I don't want to break them 😅 I could be convinced to do that in this PR though
Fixes https://github.com/run-llama/llama_deploy/issues/42
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.