mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
Merge pull request #146 from Pythagora-io/bugfix/ENG-735-event-loop-closed
ENG-735 (Revert asyncio handling of CodeMonkey)
This commit is contained in:
@@ -83,8 +83,7 @@ class Orchestrator(BaseAgent, GitMixin):
|
||||
# In case where agent is a list, run all agents in parallel.
|
||||
# Only one agent type can be run in parallel at a time (for now). See handle_parallel_responses().
|
||||
if isinstance(agent, list):
|
||||
# TODO: check the rest of project for exact same fix (asyncio.to_thread)
|
||||
tasks = [asyncio.to_thread(asyncio.run, single_agent.run()) for single_agent in agent]
|
||||
tasks = [single_agent.run() for single_agent in agent]
|
||||
log.debug(
|
||||
f"Running agents {[a.__class__.__name__ for a in agent]} (step {self.current_state.step_index})"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user