[Swift-commit] cog r3675

swift at ci.uchicago.edu swift at ci.uchicago.edu
Mon Jul 1 15:00:02 CDT 2013


------------------------------------------------------------------------
r3675 | hategan | 2013-07-01 14:58:32 -0500 (Mon, 01 Jul 2013) | 1 line

only set processed property in import after the actual import to prevent marking as imported a file that has errors
------------------------------------------------------------------------
Index: modules/karajan/src/org/globus/cog/karajan/workflow/nodes/Include.java
===================================================================
--- modules/karajan/src/org/globus/cog/karajan/workflow/nodes/Include.java	(revision 3674)
+++ modules/karajan/src/org/globus/cog/karajan/workflow/nodes/Include.java	(working copy)
@@ -156,7 +156,6 @@
 		if (hasProperty("_processed")) {
 			return;
 		}
-		setProperty("_processed", elementCount());
 		A_FILE.setStatic(this, iname);
 		logger.debug("Importing: " + iname);
 		Reader reader = null;
@@ -290,6 +289,7 @@
 				throw new ExecutionException("Internal error. No reader set");
 			}
 		}
+		setProperty("_processed", elementCount());
 	}
 
 	public void loadStarted() {



More information about the Swift-commit mailing list