Do not hang in local processing mode

Shut down the app, including exn middleware, after processing the app
creation message and sending AMPL.  Do not try to perform initial
deployment for now, since that hangs when there is no exn middleware
available.

The backtrace at the end is due to
https://bugs.launchpad.net/nebulous/+bug/2052769 and is not critical.

Change-Id: I8cc68389547d8ee4a33d167630323fd4ad356b65
This commit is contained in:
Rudi Schlatte 2024-02-20 15:19:18 +01:00
parent 133d08b221
commit 44084e3030

View File

@ -49,10 +49,14 @@ public class LocalExecution implements Callable<Integer> {
if (connector != null) {
log.debug("Sending AMPL to channel {}", connector.getAmplMessagePublisher());
app.sendAMPL();
app.deployUnmodifiedApplication();
// skip for now until the endpoints are ready and the exn middleware is running
// app.deployUnmodifiedApplication();
}
System.out.println(AMPLGenerator.generateAMPL(app));
// TODO: wait for solver reply here?
if (connector != null) {
connector.stop();
}
return 0;
}
}