-
Notifications
You must be signed in to change notification settings - Fork 0
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
Viashpy 0.6.0 #20
Viashpy 0.6.0 #20
Conversation
78d98fa
to
fdbcab8
Compare
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. Minor question.
viashpy/_run.py
Outdated
[viash_location, "run", config, "--"] | ||
+ _add_cpu_and_memory(args, cpus, memory, "--"), | ||
_add_cpu_and_memory([viash_location, "run", config], cpus, memory, "--") | ||
+ ["--"] | ||
+ args, |
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.
FYI; I think
[viash_location, "run", config, "--"] | |
+ _add_cpu_and_memory(args, cpus, memory, "--"), | |
_add_cpu_and_memory([viash_location, "run", config], cpus, memory, "--") | |
+ ["--"] | |
+ args, | |
[viash_location, "run", config, "--"] | |
+ _add_cpu_and_memory(args, cpus, memory, "---"), |
Would also have worked.
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.
Also, why pass any args at all? Why not just
[viash_location, "run", config, "--"] | |
+ _add_cpu_and_memory(args, cpus, memory, "--"), | |
_add_cpu_and_memory([viash_location, "run", config], cpus, memory, "--") | |
+ ["--"] | |
+ args, | |
[viash_location, "run", config, "--"] | |
+ _add_cpu_and_memory([], cpus, memory, "---") | |
+ args |
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.
Turns out I forgot that ---memory
can also be used with viash run
. viash run
builds an executable and everything after --
gets passed to it (including ---memory
and ---cpus
). Good suggestion! This simplifies thing a bit.
Closes #18