Skip to content

Commit

Permalink
Update qsub submissions to use 1 task
Browse files Browse the repository at this point in the history
Refs: #66
  • Loading branch information
malloryprow committed Oct 7, 2021
1 parent 90c75be commit 7ad9d7c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ush/build_webpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ def tropcyc_write_template_body2(template_filename):
elif machine == 'WCOSS2':
os.system('qsub -V -l walltime='+walltime.strftime('%H:%M:%S')+' '
+'-q '+QUEUESERV+' -A '+ACCOUNT+' -o '+web_job_output+' '
+'-e '+web_job_output+' -N '+web_job_name+' '+web_job_filename)
+'-e '+web_job_output+' -N '+web_job_name+' '
+'-l select=1:ncpus=1 '+web_job_filename)

print("END: "+os.path.basename(__file__))
2 changes: 1 addition & 1 deletion ush/get_data_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def get_hpss_data(hpss_job_filename, save_data_dir, save_data_file,
os.system('qsub -V -l walltime='+walltime.strftime('%H:%M:%S')+' '
+'-q '+QUEUESERV+' -A '+ACCOUNT+' -o '+hpss_job_output+' '
+'-e '+hpss_job_output+' -N '+hpss_job_name+' '
+hpss_job_filename)
+'-l select=1:ncpus=1 '+hpss_job_filename)
job_check_cmd = ('qselect -s QR -u '+os.environ['USER']+' '
+'-N '+hpss_job_name+' | wc -l')
if machine not in ['ORION', 'S4']:
Expand Down
3 changes: 2 additions & 1 deletion ush/load_to_METviewer_AWS.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,6 @@
elif machine == 'WCOSS2':
os.system('qsub -V -l walltime='+walltime.strftime('%H:%M:%S')+' '
+'-q '+QUEUESERV+' -A '+ACCOUNT+' -o '+AWS_job_output+' '
+'-e '+AWS_job_output+' -N '+AWS_job_name+' '+AWS_job_filename)
+'-e '+AWS_job_output+' -N '+AWS_job_name+' '
+'-l select=1:ncpus=1 '+AWS_job_filename)
print("END: "+os.path.basename(__file__))
4 changes: 2 additions & 2 deletions ush/plotting_scripts/plot_scorecard.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,6 @@ def get_day_value(filename, filename_cols, day):
elif machine == 'WCOSS2':
os.system('qsub -V -l walltime='+walltime.strftime('%H:%M:%S')+' '
+'-q '+QUEUESERV+' -A '+ACCOUNT+' -o '+web_job_output+' '
+'-e '+web_job_output+' -N '+web_job_name+'
'+web_job_filename)
+'-e '+web_job_output+' -N '+web_job_name+' '
+'-l select=1:ncpus=1 '+web_job_filename)

0 comments on commit 7ad9d7c

Please sign in to comment.