-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angle monitoring noglsk #1249
base: main
Are you sure you want to change the base?
Angle monitoring noglsk #1249
Conversation
Signed-off-by: CHEN Roxane <[email protected]>
Signed-off-by: CHEN Roxane <[email protected]>
Signed-off-by: CHEN Roxane <[email protected]>
Crash no matter what error occurs in the try (not just missing country code error) is it problematic? Are there cases where you just want to interrupt and still go to the end of the function? |
monitoring/src/main/java/com/powsybl/openrao/monitoring/Monitoring.java
Outdated
Show resolved
Hide resolved
@@ -140,6 +140,7 @@ public MonitoringResult runMonitoring(MonitoringInput monitoringInput, int numbe | |||
networkPool.shutdownAndAwaitTermination(24, TimeUnit.HOURS); | |||
} catch (Exception e) { | |||
Thread.currentThread().interrupt(); | |||
throw new OpenRaoException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting on information for best way to proceed:
- crash, as you did, but we need to check that we didn't expect partial results for existing exception cases
- log error, sert result to failure
monitoring/src/main/java/com/powsybl/openrao/monitoring/Monitoring.java
Outdated
Show resolved
Hide resolved
monitoring/src/test/java/com/powsybl/openrao/monitoring/AngleMonitoringTest.java
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,71 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<GLSK_MarketDocument xsi:schemaLocation="urn:iec62325.351:tc57wg16:451-n:glskdocument:2:1 iec62325-451-n-glsk_v2_1.xsd" xmlns="urn:iec62325.351:tc57wg16:451-n:glskdocument:2:1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessary, since we want to test the absence of glsk
Signed-off-by: CHEN Roxane <[email protected]>
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes #1202
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: