-
Notifications
You must be signed in to change notification settings - Fork 127
feat: optimize async execution #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tyaroshko
wants to merge
26
commits into
main
Choose a base branch
from
feat/async-execution-optimization
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9c0485a
feat: add execute_async() and has_native_async to Node base class
tyaroshko e46da79
feat: add execute_async_with_retry() with asyncio timeout and non-blo…
tyaroshko 518fd07
feat: rewrite Node.run_async() with native async routing and per-flow…
tyaroshko ec209c7
feat: per-flow executor isolation in Flow.run_async(), replace 3ms sl…
tyaroshko b0d60fe
feat: add BaseLLM.execute_async() using litellm.acompletion() with as…
tyaroshko 3260d5b
feat: add BaseLLM.run_async() with async fallback support
tyaroshko 9451e01
fix: skip passing sync client to litellm.acompletion in execute_async
tyaroshko 078b5ff
fix: update test mocks for BaseLLM.run_async override
tyaroshko cd06232
chore: remove redundant tests
tyaroshko 8cf0c2e
fix: update linting
tyaroshko ef160d6
fix: remove blocking sync execution when caching is enabled
tyaroshko 07c39e1
fix: add lazy import for RecoverableAgentException
tyaroshko ec02882
fix: update asyncio.sleep() to remove CPU busy-wait
tyaroshko 3cbf65b
fix: update tests for async execution
tyaroshko 7021675
fix: update finally block for ThreadPoolExecutor
tyaroshko fdedc07
fix: update MCP tool tests
tyaroshko 06679f9
fix: update Node for async retries and queue reads
tyaroshko b5428ad
fix: fix comments from Bugbot
tyaroshko f8f0eb2
fix: update params for async completion response
tyaroshko 921d008
refactor: extract _build_completion_params to DRY execute/execute_asy…
tyaroshko e73d946
refactor: restore streaming comment in _build_completion_params
tyaroshko 40656ed
feat: add cache_wf_entity_async for non-blocking async cache support
tyaroshko 96264ea
fix: clean up cache_wf_entity_async per review
tyaroshko 9c1d45f
fix: use async cache path in _run_async_native
tyaroshko 67558e8
fix: skip redundant context copy for ContextAwareTPE
tyaroshko 356b16e
fix: trailing newline in test_node_async.py
tyaroshko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.