erikcw
erikcw

Reputation: 11057

Restart agent thread-pool after calling shutdown-agents

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!

Upvotes: 4

Views: 640

Answers (1)

Brian Carper
Brian Carper

Reputation: 72926

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.

Upvotes: 3

Related Questions