mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
fix: ipykernel_error that is Too many open files in system
This commit is contained in:
parent
79262f392e
commit
b5a534d617
1 changed files with 3 additions and 0 deletions
|
|
@ -503,6 +503,9 @@ class Role(SerializationMixin, ContextMixin, BaseModel):
|
|||
|
||||
self.rc.memory.add(rsp) # add to persistent memory
|
||||
|
||||
if hasattr(self, "execute_code") and hasattr(self.execute_code, "terminate"):
|
||||
await self.execute_code.terminate()
|
||||
|
||||
return rsp
|
||||
|
||||
async def _act_on_task(self, current_task: Task) -> TaskResult:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue