[Swift-commit] r2990 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Jun 30 07:38:49 CDT 2009


Author: benc
Date: 2009-06-30 07:38:49 -0500 (Tue, 30 Jun 2009)
New Revision: 2990

Modified:
   provenancedb/prepare-for-import
   provenancedb/prov-to-sql.sh
Log:
import internal procedure executions into provenancedb

Modified: provenancedb/prepare-for-import
===================================================================
--- provenancedb/prepare-for-import	2009-06-30 12:38:31 UTC (rev 2989)
+++ provenancedb/prepare-for-import	2009-06-30 12:38:49 UTC (rev 2990)
@@ -4,7 +4,7 @@
 # workflow has finished and will do everything necessary to import all
 # of the provenance information into the SQL provenance database.
 
-swift-plot-log $1 execute.global.event execute2.event workflow.event execute2.global.event compound.event
+swift-plot-log $1 execute.global.event execute2.event workflow.event execute2.global.event compound.event internalproc.event
 
 prepare-provenance-chart $1
 

Modified: provenancedb/prov-to-sql.sh
===================================================================
--- provenancedb/prov-to-sql.sh	2009-06-30 12:38:31 UTC (rev 2989)
+++ provenancedb/prov-to-sql.sh	2009-06-30 12:38:49 UTC (rev 2990)
@@ -94,6 +94,12 @@
   echo "INSERT INTO invocation_procedure_names (execute_id, procedure_name) VALUES ('$compoundid', '$procname');" >> tmp-import.sql
 done < compound.event
 
+while read start duration thread finalstate procname ; do
+  fqid=$WFID$thread
+  echo "INSERT INTO processes (id, type) VALUES ('$fqid', 'internal');" >> tmp-import.sql
+  echo "INSERT INTO invocation_procedure_names (execute_id, procedure_name) VALUES ('$fqid', '$procname');" >> tmp-import.sql
+done < internalproc.event
+
 while read id ; do
   echo "INSERT INTO createarray (array_id) VALUES ('$id');" >> tmp-import.sql
 done < createarray.txt




More information about the Swift-commit mailing list