调用 shutdown-agents 后重新启动代理线程池
如果我从 REPL 调用 (shutdown-agents),然后稍后尝试使用代理,我会收到一个异常,提示代理池不可用(当然!)。问题是,如何重新启动代理线程池,而不必重新启动 REPL 并丢失我的所有状态?
谢谢!
If I call (shutdown-agents) from the REPL, and then 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
shutdown-agents 应该在退出 JVM 之前运行。据我所知,之后您无法重新启动它们。请参阅此处和此处。
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.