Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
<mockwebserver3.version>5.0.0-alpha.14</mockwebserver3.version>
<sonar.organization>gridsuite</sonar.organization>
<sonar.projectKey>org.gridsuite:security-analysis-server</sonar.projectKey>
<!-- FIXME: powsybl-ws-commons modules'version is overloaded in the dependencies section to be removed at next powsybl-ws-dependencies.version upgrade -->
<powsybl-ws-commons.version>1.25.0-SNAPSHOT</powsybl-ws-commons.version>
</properties>

<build>
Expand Down Expand Up @@ -146,6 +148,7 @@
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-ws-commons</artifactId>
<version>${powsybl-ws-commons.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
Expand Down Expand Up @@ -129,7 +132,7 @@ protected CompletableFuture<SecurityAnalysisResult> getCompletableFuture(Securit

SecurityAnalysisRunParameters runParameters = new SecurityAnalysisRunParameters()
.setSecurityAnalysisParameters(runContext.getParameters().securityAnalysisParameters())
.setComputationManager(executionService.getComputationManager())
.setComputationManager(runContext.getComputationManager())
.setFilter(LimitViolationFilter.load())
.setLimitReductions(limitReductions)
.setReportNode(runContext.getReportNode());
Expand Down Expand Up @@ -173,6 +176,8 @@ private LimitReduction createLimitReduction(IdentifiableCriterion voltageLevelCr

@Override
protected void preRun(SecurityAnalysisRunContext runContext) {
super.preRun(runContext);

LOGGER.info("Run security analysis on contingency lists: {}", runContext.getContingencyListNames().stream().map(LogUtils::sanitizeParam).toList());

List<ContingencyInfos> contingencies = observer.observe("contingencies.fetch", runContext,
Expand Down
Loading