You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sh...@apache.org on 2016/08/22 18:46:37 UTC

airavata git commit: Added qos and reservataion entry to configuration resources

Repository: airavata
Updated Branches:
  refs/heads/develop 442771830 -> ef310d3ca


Added qos and reservataion entry to configuration resources


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/ef310d3c
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/ef310d3c
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/ef310d3c

Branch: refs/heads/develop
Commit: ef310d3ca9820a3aefabd59a6c5e6d0b52ecde37
Parents: 4427718
Author: Shameera Rathnayaka <sh...@gmail.com>
Authored: Mon Aug 22 14:45:53 2016 -0400
Committer: Shameera Rathnayaka <sh...@gmail.com>
Committed: Mon Aug 22 14:45:53 2016 -0400

----------------------------------------------------------------------
 .../server/src/main/resources/SLURMTemplate.xslt          | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/ef310d3c/modules/configuration/server/src/main/resources/SLURMTemplate.xslt
----------------------------------------------------------------------
diff --git a/modules/configuration/server/src/main/resources/SLURMTemplate.xslt b/modules/configuration/server/src/main/resources/SLURMTemplate.xslt
index 43dd552..a8eb84b 100644
--- a/modules/configuration/server/src/main/resources/SLURMTemplate.xslt
+++ b/modules/configuration/server/src/main/resources/SLURMTemplate.xslt
@@ -59,6 +59,16 @@
 #SBATCH -e <xsl:value-of select="ns:standardErrorFile"/>
     </xsl:when>
     </xsl:choose>
+    <xsl:choose>
+    <xsl:when test="ns:qualityOfService">
+#SBATCH --qos=<xsl:value-of select="ns:qualityOfService"/>
+    </xsl:when>
+    </xsl:choose>
+    <xsl:choose>
+    <xsl:when test="ns:reservation">
+#SBATCH --reservation=<xsl:value-of select="ns:reservation"/>
+    </xsl:when>
+    </xsl:choose>
     <xsl:text>&#xa;</xsl:text>
 <xsl:for-each select="ns:exports/ns:name">
    <xsl:value-of select="."/>=<xsl:value-of select="./@value"/><xsl:text>&#xa;</xsl:text>