Skip to content

Commit

Permalink
Set job as shared when not exclusive on WCOSS2
Browse files Browse the repository at this point in the history
WCOSS2 defaults to exclusive when it is not specified as
either exclusive (place=exclhost) or shared (place=shared).
Now set shared when job should be shared.

Refs NOAA-EMC#2135
  • Loading branch information
KateFriedman-NOAA committed Dec 14, 2023
1 parent bb6151a commit fe7c855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflow/rocoto/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ def get_resource(self, task_name):
native = None
if scheduler in ['pbspro']:
native = '-l debug=true,place=vscatter'
# Set either exclusive or shared - default on WCOSS2 is exclusive when not set
if task_config.get('is_exclusive', False):
native += ':exclhost'
else:
native += ':shared'
elif scheduler in ['slurm']:
native = '--export=NONE'

Expand Down

0 comments on commit fe7c855

Please sign in to comment.