Skip to content
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

chore(agents-api): Run sync system tool executions in new processes #912

Merged
merged 4 commits into from
Nov 29, 2024

Conversation

HamadaSalhab
Copy link
Contributor

@HamadaSalhab HamadaSalhab commented Nov 29, 2024

Important

Run synchronous system tool executions in separate processes using ProcessPoolExecutor in execute_system.py.

  • Behavior:
    • Use ProcessPoolExecutor in execute_system.py to run synchronous handlers in separate processes.
    • Modify execute_system to check if handler is coroutine; if not, run in executor.
    • Applies to session creation and regular operations.
  • Misc:
    • Add ProcessPoolExecutor and partial imports.
    • No changes to existing mock and activity definitions.

This description was created by Ellipsis for bbd8656. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 bbd8656 in 1 minute and 18 seconds

More details
  • Looked at 48 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. agents-api/agents_api/activities/execute_system.py:131
  • Draft comment:
    Catching BaseException is not recommended. Consider catching more specific exceptions instead.
  • Reason this comment was not posted:
    Comment was on unchanged code.
2. agents-api/agents_api/activities/execute_system.py:118
  • Draft comment:
    await handler() is missing arguments. Ensure that necessary arguments are passed to the handler function.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_IFQ8Q85F9cREh6mr


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@creatorrr creatorrr merged commit 8aa82e5 into dev Nov 29, 2024
12 of 16 checks passed
@creatorrr creatorrr deleted the c/async-system-tool-execution branch November 29, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants