Skip to content
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

#783 properly exit all processes when N simulation fails in NSA #785

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

rosiereflo
Copy link
Contributor

closes #783

Checklist before requesting a review

use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes

  • unit tests and non regression tests were added (update of inputs, outputs, SA, algos)
  • main documentation was updated (update of input/output file)
  • the corresponding milestone was added in the ticket and in this PR

@rosiereflo rosiereflo added this to the v1.7.0 milestone Sep 9, 2024
closes #783

Signed-off-by: Florentine Rosiere <florentine.rosiere@rte-france.com>
]
},
{
"id": "load_contingency_bad_id",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this will make the N simulation fail (gracefully thanks to your dev) or the SA's?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in NSA mode + multi-process, only the root process runs the N simulation, and the others processes wait (before starting the scenarios in a second time when the N results are avaialble).
This issue fixes the behavior when the N simulation fails for some reason: in this case, initially the root process was launching an exception and exited peacefully...while the others processes were waiting indefinitely as the sync method was never executed by the root process.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thus the nrt added is a testcase for which the N fails

@gaouizer gaouizer merged commit 399e962 into master Sep 10, 2024
5 checks passed
@gaouizer gaouizer deleted the 783_nsa_n_fail branch September 10, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NSA] in multi-processing, when the N fails only the root process fails and the others hang
2 participants