You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2022/08/30 20:34:18 UTC

[airavata] branch master updated: Updating condor groovy template to support module load, pre job and post job commands

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/master by this push:
     new e8a1c0156a Updating condor groovy template to support module load, pre job and post job commands
e8a1c0156a is described below

commit e8a1c0156aadeb9941b7f87290bcfb5d08860870
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Tue Aug 30 16:33:42 2022 -0400

    Updating condor groovy template to support module load, pre job and post job commands
---
 .../configuration/server/src/main/resources/HTCONDOR_Groovy.template | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/configuration/server/src/main/resources/HTCONDOR_Groovy.template b/modules/configuration/server/src/main/resources/HTCONDOR_Groovy.template
index a5bfbe0ed2..3625d0b065 100644
--- a/modules/configuration/server/src/main/resources/HTCONDOR_Groovy.template
+++ b/modules/configuration/server/src/main/resources/HTCONDOR_Groovy.template
@@ -20,5 +20,8 @@
    if (inputFiles != null && inputFiles.size() > 0) out.print 'transfer_input_files = '
    if (inputFiles != null && inputFiles.size() > 0) for(file in inputFiles) out.print file + ', '
    if (inputFiles != null && inputFiles.size() > 0) out.print '\n'
+   if (moduleCommands != null) for(mc in moduleCommands)  out.print mc +'\n'
+   if (preJobCommands != null) for(pjc in preJobCommands)  out.print pjc +'\n'
    out.print 'queue\n'
-%>
\ No newline at end of file
+   if (postJobCommands != null) for(pjc in postJobCommands)  out.print pjc +'\n'
+%>