-
Notifications
You must be signed in to change notification settings - Fork 536
[ENH] Migrating resource handler to Node level #1942
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
Conversation
This PR: - Sets the default `estimated_memory_gb` to 0 (most of the nodes of a workflow will never reach 1GB) - Makes two new arguments available to creating Nodes (n_procs and mem_gb), that will set those two values in the inner interface (no need to call node.interface.num_threads anymore). - Fixes a small error formating one Exception. TODO list: - Remove estimated_memory_gb and num_threads from the BaseInterface - Find a way to synchronize the Node level num_threads and the inner interface inputs (maybe a new metadata threads=True to identify these inputs?) - Resource handling of MapNodes (check if these changes would affect those).
@ccraddock may you have a look into these changes, and maybe give some feedback about the TODO list? Thanks!
I will have a look over the next few days. Really busy at the moment. But at first, I would recommend to make the default memory something > 0, such as .5 or .25
Codecov Report
@@ Coverage Diff @@ ## master #1942 +/- ## ========================================== - Coverage 72.49% 72.47% -0.02% ========================================== Files 1063 1063 Lines 54159 54151 -8 Branches 7811 7812 +1 ========================================== - Hits 39260 39246 -14 - Misses 13680 13685 +5 - Partials 1219 1220 +1
Continue to review full report at Codecov.
|
Up! cc/ @ccraddock
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.
LGTM
Uh oh!
There was an error while loading. Please reload this page.
This PR:
estimated_memory_gbto 0.25 (most of the nodes of a workflow will never reach 1GB)__interfaceinstead of_interface).TODO list: