Skip to content

Fixes cases when tool ID includes spaces#334

Open
martindemko wants to merge 3 commits into
mainfrom
fix-bad-tool-id-in-tpv
Open

Fixes cases when tool ID includes spaces#334
martindemko wants to merge 3 commits into
mainfrom
fix-bad-tool-id-in-tpv

Conversation

@martindemko

Copy link
Copy Markdown
Collaborator

like this one

@martenson

Copy link
Copy Markdown
Member

This should likely be also fixed on L404.

Also we could use this opportunity to maybe reformat how we specify these?

submit_native_specification: >-
  -l select=1:ncpus={int(cores)}:mem={int(mem)}gb:scratch_local={int(scratch)}gb
  -l walltime={int(walltime)}:00:00
  -q {queue}
  -N {{ pulsar.nfs_prefix }}_j{job.id}__{(tool.id if '/' not in tool.id else tool.id.split('/')[-2]+'_v'+tool.id.split('/')[-1]).replace('','_')}__{user.username if user and hasattr(user, 'username') else 'anonymous'}

@martindemko

Copy link
Copy Markdown
Collaborator Author

Thanks @martenson ! I totally forgot about the others.

@martindemko

Copy link
Copy Markdown
Collaborator Author

I will also add the proposed rearrangement

@martindemko

Copy link
Copy Markdown
Collaborator Author

tested on QA2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants