[Swift-commit] r2748 - in trunk: . docs libexec
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri Mar 27 16:14:46 CDT 2009
Author: benc
Date: 2009-03-27 16:14:45 -0500 (Fri, 27 Mar 2009)
New Revision: 2748
Modified:
trunk/CHANGES.txt
trunk/docs/userguide.xml
trunk/libexec/_swiftwrap
Log:
Allow arbitrary command to be run to log information such as software version that will be shipped back to the submit host in wrapper log info files.
Modified: trunk/CHANGES.txt
===================================================================
--- trunk/CHANGES.txt 2009-03-27 20:24:17 UTC (rev 2747)
+++ trunk/CHANGES.txt 2009-03-27 21:14:45 UTC (rev 2748)
@@ -1,4 +1,9 @@
(03/27/09)
+*** Environment variable SWIFT_EXTRA_INFO, when set in an environment profile,
+ is executed with the result being recorded in wrapper logs. This allows
+ arbitrary information about the remote environment to be gathered and
+ returned to the submit side.
+
*** The wrapper.sh and seq.sh scripts that are deployed to remote sites to
help with execution have been renamed to more Swift specific names, to
avoid collision with user-supplied files of the same name. The new names
Modified: trunk/docs/userguide.xml
===================================================================
--- trunk/docs/userguide.xml 2009-03-27 20:24:17 UTC (rev 2747)
+++ trunk/docs/userguide.xml 2009-03-27 21:14:45 UTC (rev 2748)
@@ -3025,6 +3025,15 @@
local directory can be much faster than having applications access the
site-shared filesystem directly.
</para>
+ <para>
+<literal>SWIFT_EXTRA_INFO</literal> - set in env namespace profiles. If set,
+then Swift will execute the command specified in
+<literal>SWIFT_EXTRA_INFO</literal> on execution sites immediately before
+each application execution, and will record the stdout of that command in the
+wrapper info log file for that job. This is intended to allow software
+version and other arbitrary information about the remote site to be gathered
+and returned to the submit side.
+ </para>
</section>
<section id="sitecatalog"><title>The Site Catalog - sites.xml</title>
<para>
Modified: trunk/libexec/_swiftwrap
===================================================================
--- trunk/libexec/_swiftwrap 2009-03-27 20:24:17 UTC (rev 2747)
+++ trunk/libexec/_swiftwrap 2009-03-27 21:14:45 UTC (rev 2748)
@@ -194,6 +194,10 @@
export PATH=$PATHPREFIX:$PATH
fi
+if [ "$SWIFT_EXTRA_INFO" != "" ]; then
+ log "EXTRAINFO=$($SWIFT_EXTRA_INFO)"
+fi
+
if [ "X${EXEC:0:1}" != "X/" ] ; then
export ORIGEXEC=$EXEC
export EXEC=$(which $EXEC)
More information about the Swift-commit
mailing list