[Swift-commit] r2215 - log-processing

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Sep 5 08:57:46 CDT 2008


Author: benc
Date: 2008-09-05 08:57:45 -0500 (Fri, 05 Sep 2008)
New Revision: 2215

Modified:
   log-processing/makefile
   log-processing/whole-workflow-event
Log:
put workflow ID into workflow event file, for provenancedb

Modified: log-processing/makefile
===================================================================
--- log-processing/makefile	2008-09-05 13:55:09 UTC (rev 2214)
+++ log-processing/makefile	2008-09-05 13:57:45 UTC (rev 2215)
@@ -55,7 +55,7 @@
 	./list-known-threads > threads.list
 
 workflow.event: start-time.tmp end-time.tmp
-	./whole-workflow-event > workflow.event
+	./whole-workflow-event $(LOG) > workflow.event
 
 execute-start-times.data: log
 	./extract-execute-start-times > execute-start-times.data

Modified: log-processing/whole-workflow-event
===================================================================
--- log-processing/whole-workflow-event	2008-09-05 13:55:09 UTC (rev 2214)
+++ log-processing/whole-workflow-event	2008-09-05 13:57:45 UTC (rev 2215)
@@ -3,5 +3,13 @@
 export st=$(cat start-time.tmp)
 export et=$(cat end-time.tmp)
 
-echo $st $(echo $et - $st | bc ) whole-workflow
+#2008-08-30 08:59:26,994-0500 INFO  unknown RUNID id=tag:benc at ci.uchicago.edu,2007:swift:run:20080830-0859-q9bqd8r4
 
+WFID=$(grep -E '^[^ ]* [^ ]* INFO  unknown RUNID id=' $1 | sed 's/^.*INFO  unknown RUNID id=\(.*\)$/\1/')
+
+if [ "X$WFID" == "X" ] ; then
+  WFID="unknown-run-id"
+fi
+
+echo $st $(echo $et - $st | bc ) $WFID
+




More information about the Swift-commit mailing list