-
Notifications
You must be signed in to change notification settings - Fork 904
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
fix: Fix handlers calls #1014
fix: Fix handlers calls #1014
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 2f60f03 in 14 seconds
More details
- Looked at
108
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/activities/execute_system.py:142
- Draft comment:
Ensure all handlers are asynchronous to avoid blocking the event loop. If any handler is synchronous, consider usingrun_in_executor
to prevent performance issues. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_SPY2ASvrq5DXux09
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Bug fix, Enhancement
Description
Removed unnecessary
ProcessPoolExecutor
and related code for synchronous handlers.Simplified handler calls by directly invoking them asynchronously.
Improved error handling and streamlined code for
execute_system
.Removed redundant checks for coroutine functions in handler logic.
Changes walkthrough 📝
execute_system.py
Simplified handler calls and removed redundant logic
agents-api/agents_api/activities/execute_system.py
ProcessPoolExecutor
and related asynchronous execution logic.Important
Simplifies
execute_system
by removingProcessPoolExecutor
and assuming handlers are asynchronous.execute_system
inexecute_system.py
by removingProcessPoolExecutor
andasyncio
checks.create
,update
operations onsession
anduser
resources.asyncio
andProcessPoolExecutor
imports and related code.This description was created by for 2f60f03. It will automatically update as commits are pushed.