Describe the bug
During gradle quarkusDev
, if you press Ctrl+C to terminate the Gradle execution, you can see that the application is still running in the daemon process
Expected behavior
Application is killed
Actual behavior
Application is still running in the Gradle daemon thread.
To Reproduce
Steps to reproduce the behavior:
gradle quarkusDev
curl http://localhost:8080
, you should see a webpagecurl http://localhost:8080
and you still see the webpageEnvironment (please complete the following information):
uname -a
or ver
: Linux ggastald-laptop 5.2.17-200.fc30.x86_64 #1 SMP Mon Sep 23 13:42:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
java -version
: openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)
Additional context
(Add any other context about the problem here.)
Adding org.gradle.daemon=false
to the gradle.properties
file fixes the problem. Perhaps it would be nice to set this property when quarkusDev
runs?
Using gradle quarkusDev --no-daemon
is another workaround
The Daemon thread is marked as CANCELED
and is removed when any other gradle
task is executed, so I guess this is fine
The Daemon thread is marked as
CANCELED
and is removed when any othergradle
task is executed, so I guess this is fine
I wouldn't consider it "fine", it's highly annoying if the ports are still occupied.
Most helpful comment
I wouldn't consider it "fine", it's highly annoying if the ports are still occupied.