-
Notifications
You must be signed in to change notification settings - Fork 151
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
Run shutdown-agents after a cljsbuild once if :notify-command is used #453
Comments
|
sfnelson
pushed a commit
to montoux/lein-cljsbuild
that referenced
this issue
Apr 13, 2017
address emezeske#171. This caused a regression in testing and notify behaviour that was reported as emezeske#453, where subprocesses would hang for 30 seconds after the subprocess completed. This commit avoids the need for pump threads to copy data from subprocess streams by using ProcessBuilder's existing Redirect functionality to either write redirect stream output to files directly, or to inherit System.out and System.err from the main process. This means that `lein test` etc now terminate in a reasonable time again, and avoids the call to `exit` that was causing problems for trampoline tasks.
sfnelson
pushed a commit
to montoux/lein-cljsbuild
that referenced
this issue
Apr 13, 2017
Pull request emezeske#436 removes the call to exit that was added to address emezeske#171. This caused a regression in testing and notify behaviour that was reported as emezeske#453, where subprocesses would hang for 30 seconds after the subprocess completed. This commit avoids the need for pump threads to copy data from subprocess streams by using ProcessBuilder's existing Redirect functionality to either write redirect stream output to files directly, or to inherit System.out and System.err from the main process. This means that `lein test` etc now terminate in a reasonable time again, and avoids the call to `exit` that was causing problems for trampoline tasks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:notify-command
uses afuture
throughcljsbuild.util/process-start
. If a notify-command is run during acljsbuild once
run, then the cljsbuild process will stay running for another minute until the agents are shut down.You can reproduce this on the Reagent project by running
The text was updated successfully, but these errors were encountered: