[Swift-commit] r2933 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu May 14 11:48:04 CDT 2009


Author: benc
Date: 2009-05-14 11:48:04 -0500 (Thu, 14 May 2009)
New Revision: 2933

Modified:
   provenancedb/prov-init.sql
   provenancedb/swift-prov-import-all-logs
Log:
Add URI-format run ID to known_workflow table

Modified: provenancedb/prov-init.sql
===================================================================
--- provenancedb/prov-init.sql	2009-05-14 16:46:56 UTC (rev 2932)
+++ provenancedb/prov-init.sql	2009-05-14 16:48:04 UTC (rev 2933)
@@ -130,7 +130,9 @@
 -- been seen by the importer: the log filename, swift version and import
 -- status.
 CREATE TABLE known_workflows
-    ( workflow_log_filename char(128),
+    (
+      workflow_id char(128),
+      workflow_log_filename char(128),
       version char(128),
       importstatus char(128)
     );

Modified: provenancedb/swift-prov-import-all-logs
===================================================================
--- provenancedb/swift-prov-import-all-logs	2009-05-14 16:46:56 UTC (rev 2932)
+++ provenancedb/swift-prov-import-all-logs	2009-05-14 16:48:04 UTC (rev 2933)
@@ -63,7 +63,11 @@
      fi
 
 #     import-run-to-xml $filename
-     echo "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','$wfstatus');" | $SQLCMD
+
+     export RUNID=$(basename $filename .log)
+     export WF="tag:benc at ci.uchicago.edu,2008:swiftlogs:execute:${RUNID}:run"
+
+     echo "INSERT INTO known_workflows (workflow_id, workflow_log_filename, version, importstatus) VALUES ('$WF','$filename','$version','$wfstatus');" | $SQLCMD
 else
 echo SKIP: Already known in workflow
 fi




More information about the Swift-commit mailing list