[Swift-commit] r6014 - trunk/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:19:44 CST 2012


Author: hategan
Date: 2012-11-09 23:19:44 -0600 (Fri, 09 Nov 2012)
New Revision: 6014

Modified:
   trunk/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java
Log:
moved message from karajan to swift since karajan has nothing to do with sites files and tc.data

Modified: trunk/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java	2012-11-10 05:18:56 UTC (rev 6013)
+++ trunk/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java	2012-11-10 05:19:44 UTC (rev 6014)
@@ -40,6 +40,7 @@
 import org.globus.cog.abstraction.interfaces.Status;
 import org.globus.cog.abstraction.interfaces.Task;
 import org.globus.cog.karajan.scheduler.AbstractScheduler;
+import org.globus.cog.karajan.scheduler.NoSuchResourceException;
 import org.globus.cog.karajan.scheduler.ResourceConstraintChecker;
 import org.globus.cog.karajan.scheduler.TaskConstraints;
 import org.globus.cog.karajan.scheduler.WeightedHostScoreScheduler;
@@ -388,6 +389,10 @@
 	}
 
 	protected void failTask(Task t, String message, Exception e) {
+	    if (e instanceof NoSuchResourceException) {
+	         message = "The application \"" + getTaskConstraints(t).getConstraint("tr")
+                            + "\" is not available for any site/pool in your tc.data catalog ";
+	    }
 		if (logger.isDebugEnabled()) {
 			logger.debug("Failing task " + t.getIdentity());
 		}




More information about the Swift-commit mailing list