[Swift-commit] r2875 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu Apr 23 10:46:03 CDT 2009


Author: benc
Date: 2009-04-23 10:46:02 -0500 (Thu, 23 Apr 2009)
New Revision: 2875

Modified:
   provenancedb/swift-prov-import-all-logs
Log:
Import all log files, not just ones for apparently successful runs.

Modified: provenancedb/swift-prov-import-all-logs
===================================================================
--- provenancedb/swift-prov-import-all-logs	2009-04-23 14:34:37 UTC (rev 2874)
+++ provenancedb/swift-prov-import-all-logs	2009-04-23 15:46:02 UTC (rev 2875)
@@ -43,7 +43,11 @@
 if [ "$EXISTING" -eq "0" ];  then
 echo IMPORTING
 
-if grep --silent "DEBUG Loader Swift finished with no errors" $filename; then
+   if grep --silent "DEBUG Loader Swift finished with no errors" $filename; then
+     wfstatus="SUCCESS"
+   else
+     wfstatus="FAIL"
+   fi
 
    echo version $version in log file $filename
      echo ============= will import =============
@@ -59,11 +63,7 @@
      fi
 
 #     import-run-to-xml $filename
-     echo "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','imported');" | $SQLCMD
-   else
-     echo SKIP: Workflow does not report successful end.
-     echo "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','skipped - workflow did not end sucessfully');" | $SQLCMD
-   fi
+     echo "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','$wfstatus');" | $SQLCMD
 else
 echo SKIP: Already known in workflow
 fi




More information about the Swift-commit mailing list