This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-170
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-170 by this push:
new 732e535 Update NCCli.scala
732e535 is described below
commit 732e53556bc5b806c47df6780a7f2706eaad183a
Author: Aaron Radzinski <[email protected]>
AuthorDate: Sat Dec 12 22:11:50 2020 -0800
Update NCCli.scala
---
.../scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index dff88d2..e7a8d39 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -1800,7 +1800,7 @@ object NCCli extends App {
var online = false
val endOfWait = currentTime + timeoutMins.mins
- while (currentTime < endOfWait && !online) {
+ while (currentTime < endOfWait && !online &&
ProcessHandle.of(srvPid).isPresent) {
if (progressBar.completed) {
// First, load the beacon, if any.
if (beacon == null)
@@ -1820,7 +1820,7 @@ object NCCli extends App {
if (!online) {
logln(r(" [Error]"))
- error(s"Timed out starting server, check output for
errors.")
+ error(s"Failed to start the server, check output for
errors.")
}
else {
logln(g(" [OK]"))
@@ -2005,7 +2005,7 @@ object NCCli extends App {
var beacon: NCCliProbeBeacon = null
val endOfWait = currentTime + timeoutMins.mins
- while (currentTime < endOfWait && beacon == null) {
+ while (currentTime < endOfWait && beacon == null &&
ProcessHandle.of(prbPid).isPresent) {
if (progressBar.completed) {
// Load the beacon, if any.
if (beacon == null)
@@ -2021,7 +2021,7 @@ object NCCli extends App {
if (beacon == null) {
logln(r(" [Error]"))
- error(s"Timed out starting probe, check output for
errors.")
+ error(s"Failed to start the probe, check output for
errors.")
}
else {
logln(g(" [OK]"))