Skip to content

Commit 4ce4b99

Browse files
authored
Merge pull request #13 from NCI-CGR/issue12
convert runtime in minutes to be number of seconds for ccad profile
2 parents 88a40f1 + bb83fbd commit 4ce4b99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

workflow/profiles/ccad/sge-submit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ def parse_qsub_settings(source, resource_mapping=RESOURCE_MAPPING, option_mappin
156156
# requests as gigabytes
157157
if (rkey == 's_vmem') or (rkey == 'h_vmem'):
158158
job_options["resources"].update({rkey : str(sval) + 'G'})
159+
#turn minutes into seconds - seems to be the default option for h_rt in sge
160+
elif (rkey == 'h_rt'):
161+
job_options["resources"].update({rkey : int(sval)*60})
159162
else:
160163
job_options["resources"].update({rkey : sval})
161164
break

0 commit comments

Comments
 (0)