Repository navigation
Support for running scenarios in parallel - #3767
Merged
Merged
Conversation
quaquel
force-pushed
the
parallel_scenarios
branch
from
July 1, 2026 08:40
df4c7e4 to
5bd96bf
Compare
This was referenced Jul 2, 2026
Merged
quaquel
marked this pull request as ready for review
July 3, 2026 07:41
|
Performance benchmarks:
|
tpike3
reviewed
Jul 5, 2026
| ), | ||
| ) | ||
| _record(scenario, result) | ||
| except BrokenExecutor as e: |
Member
There was a problem hiding this comment.
I am pretty rusty on parallel executions, but don't you need to cancel all your futures here, as other runs may be still be failing on other processors
Member
Author
There was a problem hiding this comment.
A broken executor will result in the crash of the entire pool, so no need to cancel the futures. What we have to do, however, is mark all the outstanding scenarios as being aborted, which is exactly what this code does.
53 of 65 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR builds on #3756 by adding support for running scenarios with a parallel executors such as
ProcessPoolExecutorandMPIPoolExecutor.The main things it adds are
I have tested this already successfully with a process pool, I will test this with MPI asap.