Skip to content

Commit 2ee713b

Browse files
committed
Resolving conflict and adaptation to other merge PR 'bug fix running status remain when error occur'
Signed-off-by: Franck LECUYER <[email protected]>
1 parent 04111fd commit 2ee713b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/gridsuite/securityanalysis/server/service/SecurityAnalysisWorkerService.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public Consumer<Flux<Message<String>>> consumeRun() {
191191
LOGGER.info("Security analysis complete (resultUuid='{}')", resultContext.getResultUuid());
192192
} else { // result not available : stop computation request
193193
if (cancelComputationRequests.get(resultContext.getResultUuid()) != null) {
194-
stoppedPublisherService.publish(resultContext.getResultUuid(), cancelComputationRequests.get(resultContext.getResultUuid()).getReceiver());
194+
stoppedPublisherService.publishCancel(resultContext.getResultUuid(), cancelComputationRequests.get(resultContext.getResultUuid()).getReceiver());
195195
LOGGER.info("Security analysis stopped (resultUuid='{}')", resultContext.getResultUuid());
196196
}
197197
}
@@ -210,11 +210,6 @@ public Consumer<Flux<Message<String>>> consumeRun() {
210210
runRequests.remove(resultContext.getResultUuid());
211211
});
212212
})
213-
.onErrorContinue((t, r) -> {
214-
if (!(t instanceof CancellationException)) {
215-
LOGGER.error("Exception in consumeRun", t);
216-
}
217-
})
218213
.subscribe();
219214
}
220215

0 commit comments

Comments
 (0)