Skip to content

Commit

Permalink
Merge pull request #4516 from jedwards4b/job_priority
Browse files Browse the repository at this point in the history
adds support for job priority field in pbs
  • Loading branch information
jedwards4b authored Nov 15, 2023
2 parents 81c91da + 16fce5c commit 52d2a3d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/cesm/machines/config_batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@

<batch_system MACH="derecho" type="pbs" >
<batch_submit>qsub</batch_submit>
<submit_args>
<argument> -l job_priority=$JOB_PRIORITY </argument>
</submit_args>
<directives>
<directive default="/bin/bash" > -S {{ shell }} </directive>
<directive> -l select={{ num_nodes }}:ncpus={{ max_tasks_per_node }}:mpiprocs={{ tasks_per_node }}:ompthreads={{ thread_count }}</directive>
Expand Down
17 changes: 13 additions & 4 deletions config/xml_schemas/config_batch.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,22 @@

<xs:element name="submit_args">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="arg"/>
</xs:sequence>
<xs:choice>
<xs:element name="arg" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="flag" use="required"/>
<xs:attribute name="name"/>
</xs:complexType>
</xs:element>
<xs:element name="argument" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="job_queue"/>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>


<xs:element name="arg">
<xs:complexType>
<xs:attribute name="flag" use="required"/>
Expand Down
10 changes: 10 additions & 0 deletions src/drivers/mct/cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,16 @@
<desc>List of job ids for most recent case.submit</desc>
</entry>

<entry id="JOB_PRIORITY">
<type>char</type>
<default_value>regular</default_value>
<valid_values>regular,premium,economy</valid_values>
<group>run_begin_stop_restart</group>
<file>env_run.xml</file>
<desc>job priority for systems supporting this option</desc>
</entry>


<!-- ===================================================================== -->
<!-- definitions archive -->
<!-- ===================================================================== -->
Expand Down

0 comments on commit 52d2a3d

Please sign in to comment.