Skip to content

Commit

Permalink
Add a ulimit command for S4's default crontab template.
Browse files Browse the repository at this point in the history
References: NOAA-EMC#138
  • Loading branch information
DavidHuber-NOAA committed Jan 29, 2021
1 parent 9c7c49f commit eeaf242
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ush/rocoto/workflow_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ def create_crontab(base, cronint=5):
rocotoloadstr = '. /usrx/local/Modules/default/init/sh; module use -a /usrx/local/emc_rocoto/modulefiles; module load rocoto/1.3.0rc2)'
rocotorunstr = '(%s %s)' % (rocotoloadstr, rocotorunstr)

if base['machine'] in ['S4']:
limit_str = 'ulimit -S -s unlimited;'
rocotorunstr = '%s %s' % (limit_str, rocotorunstr)

try:
REPLYTO = os.environ['REPLYTO']
except:
Expand Down

0 comments on commit eeaf242

Please sign in to comment.