-
Notifications
You must be signed in to change notification settings - Fork 85
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
Tree: Allow alternate Local Workers in Tree Mode #439
Conversation
c3badbc
to
f4b6bfb
Compare
@degremont @thiell Is this acceptable to merge as-is, or is there a better way you can suggest I implement this? |
Hi @mattaezell! Thanks for your PR and patience! :) I have been discussing this with @degremont today and we think there might be another way to fix this. Let me explain.
In tree mode, the Task's info dict is filtered a bit and propagated from
to be then received on the remote end by
The idea would be to allow propagating default "overrides" to the gateway. What we could do in Perhaps we can state that for Any default values would be overridden that way from the root node, and there is no need to define a new, specific info key "local_workername". In your case, you would then use Let me know what you think and if I missed anything. If that makes sense to you, would you be willing to follow that path and change your PR? |
It makes sense. I'll work on implementation and testing - hopefully I'll have an updated PR early next week. Thanks. |
Do not hard-code Exec as the Tree LocalWorker; instead use the value set in Defaults. Allow a task to override Defaults on gateway nodes by setting an info item called 'tree_default:<key>". Closes cea-hpc#435.
f4b6bfb
to
3bf54e1
Compare
That function expects There is nothing that keeps Please review again and let me know what you think. Thanks!! |
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.
Thanks! LGTM
Requires ClusterShell be patched with: cea-hpc/clustershell#439
Do not hard-coding Exec as the Tree LocalWorker; instead use the
Task's info local_workername or the Default local_workername.
Closes #435.