-
Notifications
You must be signed in to change notification settings - Fork 135
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
Lock in DistributedMemoryRunner #1879
Lock in DistributedMemoryRunner #1879
Conversation
Things to do before merging:
|
@@ -977,6 +977,8 @@ def terminateJobs(self, ids): | |||
@ In, ids, list(str), job prefixes to terminate | |||
@ Out, None | |||
""" | |||
#XXX terminateJobs modifies the running queue, which | |||
# cleanJobQueue, and fillJobQueue assume can't happen |
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.
does this comment need to be rephrased due to the fixes in this PR?
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.
Possibly it needs to be changed to a warning.
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.
Code changes are good, but one comment should be considered, and a test is needed to cover the changes in #1883 and this PR.
@joshua-cogliati-inl a basis for a RrR test might be Rather than sampling them, you might optimize the lower bound to maximize or minimize the Alternatively, the RrR test |
Possible test (currently running on regression machines) 9c159b8 |
That looks good to me! Note the |
New merge request #1899 was created and used instead. |
Pull Request Description
What issue does this change request address?
Closes #1881
What are the significant changes in functionality due to this change request?
Adds a lock in DistributedMemoryRunner to prevent two threads stepping on each other.
For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.
<internalParallel>
to True.raven/tests/framework/user_guide
andraven/docs/workshop
) have been changed, the associated documentation must be reviewed and assured the text matches the example.