diff --git a/onyxia-api/Dockerfile b/onyxia-api/Dockerfile index aabf52fb..bbd512c6 100644 --- a/onyxia-api/Dockerfile +++ b/onyxia-api/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:21.0.4_7-jre as extract +FROM eclipse-temurin:21.0.4_7-jre AS extract ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} application.jar RUN java -Djarmode=layertools -jar application.jar extract diff --git a/onyxia-api/src/main/java/fr/insee/onyxia/api/controller/api/mylab/MyLabController.java b/onyxia-api/src/main/java/fr/insee/onyxia/api/controller/api/mylab/MyLabController.java index 7033dc44..04f7090b 100644 --- a/onyxia-api/src/main/java/fr/insee/onyxia/api/controller/api/mylab/MyLabController.java +++ b/onyxia-api/src/main/java/fr/insee/onyxia/api/controller/api/mylab/MyLabController.java @@ -362,12 +362,20 @@ public void eventReceived(Action action, Event event) { @Override public void onClose() { - emitter.complete(); + try { + emitter.complete(); + } catch (Exception ignored) { + + } } @Override public void onClose(WatcherException e) { - emitter.complete(); + try { + emitter.complete(); + } catch (Exception ignored) { + + } } }