Skip to content

Commit

Permalink
Resolving conflict and adaptation to other merge PR 'bug fix running …
Browse files Browse the repository at this point in the history
…status remain when error occur'

Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
  • Loading branch information
FranckLecuyer committed Mar 12, 2021
1 parent 04111fd commit 2ee713b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public Consumer<Flux<Message<String>>> consumeRun() {
LOGGER.info("Security analysis complete (resultUuid='{}')", resultContext.getResultUuid());
} else { // result not available : stop computation request
if (cancelComputationRequests.get(resultContext.getResultUuid()) != null) {
stoppedPublisherService.publish(resultContext.getResultUuid(), cancelComputationRequests.get(resultContext.getResultUuid()).getReceiver());
stoppedPublisherService.publishCancel(resultContext.getResultUuid(), cancelComputationRequests.get(resultContext.getResultUuid()).getReceiver());
LOGGER.info("Security analysis stopped (resultUuid='{}')", resultContext.getResultUuid());
}
}
Expand All @@ -210,11 +210,6 @@ public Consumer<Flux<Message<String>>> consumeRun() {
runRequests.remove(resultContext.getResultUuid());
});
})
.onErrorContinue((t, r) -> {
if (!(t instanceof CancellationException)) {
LOGGER.error("Exception in consumeRun", t);
}
})
.subscribe();
}

Expand Down

0 comments on commit 2ee713b

Please sign in to comment.