opensistemas-hub / osbrain

osBrain - A general-purpose multi-agent system module written in Python
https://osbrain.readthedocs.io/en/stable/
Apache License 2.0
175 stars 43 forks source link

Should we remove default timeout in shutdown? #332

Open Peque opened 5 years ago

Peque commented 5 years ago

Following the "explicit is better than implicit" mantra maybe we should remove the default value of 10., which is pretty arbitrary.

Maybe the shutdown call should wait forever unless a timeout is provided.

Maybe we should split the current shutdown-related methods into:

Properly implemented agents should be able to .shutdown() cleanly and maybe the most intuitive behavior is for the system to wait until that happens (even if it takes longer than 10 seconds or any other arbitrary timeout).