Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,9 @@ public void consumeCalculationFailed(Message<String> msg, ComputationType comput
String errorMessage = msg.getHeaders().get(StudyConstants.HEADER_ERROR_MESSAGE, String.class);
String userId = msg.getHeaders().get(HEADER_USER_ID, String.class);
UUID resultUuid = null;
// resultUuid is only used for the voltage initialization computation, I don't know why
if (computationType == VOLTAGE_INITIALIZATION) {

var computationsToReset = List.of(DYNAMIC_SIMULATION, DYNAMIC_SECURITY_ANALYSIS);
if (!computationsToReset.contains(computationType)) {
String resultId = msg.getHeaders().get(RESULT_UUID, String.class);
if (resultId != null) {
resultUuid = UUID.fromString(resultId);
Expand Down