开发者

Restart agent thread-pool after calling shutdown-agents

开发者 https://www.devze.com 2023-01-01 11:20 出处:网络
If I call (shutdown-agents) from the REPL, and then开发者_如何学Python later on try to use an agent later on, I get an exception saying the agent pool isn\'t available (of course!).The question is, ho

If I call (shutdown-agents) from the REPL, and then开发者_如何学Python later on try to use an agent later on, I get an exception saying the agent pool isn't available (of course!). The question is, how can the agent thread pool be re-started without having to re-launch the REPL and lose all of my state?

Thanks!


shutdown-agents is meant to be run before you exit the JVM. As far as I know, you can't restart them afterward. See e.g. here and here.

0

精彩评论

暂无评论...
验证码 换一张
取 消