-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools.build does not exit when requiring the Clay API #98
Comments
The problem is that Clay starts a For now, here is a workaround: (defn hello
[_opts]
(println "hello")
(portal.api/close)) (Edit: had a typo in this code earlier, missed the important part.) |
A possibly way to prevent this would be on Portal side - either add a shutdown hook that stops the server (not 100% sure this works) or get http kit updated so that clients could request the "server-loop" thread |
@daslu your suggestion did not work for me - the http-kit server kept running. I had to call |
Issue: When we require Clay, it starts a Portal server process - which keeps running and prevents the JVM from exiting. Fix: Only require Clay for build-site, and stop portal manually See scicloj/clay#98
Issue: When we require Clay, it starts a Portal server process - which keeps running and prevents the JVM from exiting. Fix: Only require Clay for build-site, and stop portal manually See scicloj/clay#98
Interesting. Thanks for checking and discovering that. |
Reported by jason1903 on Slack:
https://clojurians.slack.com/archives/C0BQDEJ8M/p1714087040436159
deps.edn
:build.clj
:Then
never exits.
The text was updated successfully, but these errors were encountered: