You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Leon0402 Can you show where your runtime is created? this might be due to the runtime is not removing references to created agents.
To mitigate you might want to create new instances of runtime for each task.
I think we should handle it in a separate PR.
_Originally posted by @ekzhu in https://github.com/microsoft/autogen/issues/4885#issuecomment-2571434115_
Thanks @ekzhu, you could be right about that. Possibly some interplay with gather() as I read something in that direction about it. I currently try to reproduce in a smaller setup.
What do you mean by runtime? My Task Runner? This basically just is:
class TaskRunner:
def __init__(self, cfg: Config):
self._cfg = cfg
async def run_agent(self, sample: TaskSample, output_dir: Path):
// define agents here
// run chat
// save results to some file
I do not store anything in the object itself. So it was my assumption that agents should get cleaned up after run_agent is left.
The text was updated successfully, but these errors were encountered:
Thanks for creating the issue. A simple setup can be tried without the jupyter code executor to isolate the cause. And then add the jupyter executor to run a simple piece of code. See the difference.
Thanks @ekzhu, you could be right about that. Possibly some interplay with gather() as I read something in that direction about it. I currently try to reproduce in a smaller setup.
What do you mean by runtime? My Task Runner? This basically just is:
I do not store anything in the object itself. So it was my assumption that agents should get cleaned up after run_agent is left.
The text was updated successfully, but these errors were encountered: