Skip to content
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

How to stop non-blocking mock service when using the Gradle daemon? #39

Open
rkrisztian opened this issue Apr 15, 2019 · 1 comment
Open

Comments

@rkrisztian
Copy link

rkrisztian commented Apr 15, 2019

Hi,

I use the Gradle daemon, and I start a mock service like this:

soapmock {
	noBlock = true
}

How can I stop it once the SoapUI tests are finished?

Hint: There should be a Gradle task that has a way to access the runner...

Edit: I just realized these services seem to stop themselves somehow before restarting them, so there are no port conflicts... Or correct, me if I'm wrong...

@rkrisztian
Copy link
Author

rkrisztian commented Apr 15, 2019

Anyway, I think there is a more serious issue: I would keep the service running as long as I want, regardless of the build or the daemon stopping in the meantime, which can happen: "Every Daemon monitors its memory usage compared to total system memory and will stop itself if idle when available system memory is low." (source) So something like combining the execution of the task with the spawn plugin would help more for me, which I can do if I configure the command to execute to be gradle (or gradlew) with the daemon disabled. => OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant