-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use shlex.quote
to convert the arguments into unix format
#209
Conversation
|
||
if run_on_submit_node: | ||
job.add_selector_profile(execution_site="local") | ||
# no other attributes on a local job | ||
return job | ||
|
||
job.add_profiles(Namespace.CONDOR, "request_cpus", f"{cores}") |
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.
request_cpus
can not be assigned to a local job.
disk=self.combine_disk, | ||
run_on_submit_node=True, | ||
) | ||
separate_job = self._initialize_job(name=separate_name, run_on_submit_node=True) |
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.
For separation jobs, these arguments are not really used.
return tuple( | ||
f"{json.dumps(str(d[key])).replace(' ', '')}".replace("'", '\\"') | ||
for key in d.keys() | ||
shlex.quote(Submitter.arg_to_str(kwargs[arg], annotation)) |
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.
Similar to
Line 579 in 09f35f5
def script_from_runner_kwargs(annotations, kwargs) -> str: |
@@ -2,6 +2,12 @@ | |||
|
|||
set -e | |||
|
|||
# Check if number of arguments passed is correct | |||
if [ $# -ne 21 ]; then |
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.
Check the number of arguments.
Pull Request Test Coverage Report for Build 10780496412Details
💛 - Coveralls |
Otherwise, we might see a problem when interpreting the inputs for
alea/submitters/run_toymc_wrapper.sh
.