OFFIS-DAI / mango

Modular Python-based agent framework to implement multi-agent systems
https://mango-agents.readthedocs.io/
MIT License
12 stars 2 forks source link

many file descriptors #70

Closed Ellariel closed 8 months ago

Ellariel commented 8 months ago

Hi, when I create one agent in the system 6 file descriptors are reserved. Could you please advise if I do it correctly and if so, is there any way to control descriptors in case there is a limit in the system (I am using a server that has a limit per user). Thanks!!! image An example https://github.com/Ellariel/mangotest/

rcschrg commented 8 months ago

Hello @Ellariel, yeah this is correct. Every agent has its own scheduler, which contains a process executor for scheduling process tasks, this executor seems to open the file descriptors on initialization. I agree that this is a rather bad behavior. I changed this behavior such that the fd are only opened if process tasks are created, see PR #71