[Swift-commit] cog r3648

swift at ci.uchicago.edu swift at ci.uchicago.edu
Mon Mar 25 11:40:08 CDT 2013


------------------------------------------------------------------------
r3648 | davidkelly999 | 2013-03-25 11:36:20 -0500 (Mon, 25 Mar 2013) | 2 lines

LSF fix for multiline bjobs output

------------------------------------------------------------------------
Index: modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/lsf/QueuePoller.java
===================================================================
--- modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/lsf/QueuePoller.java	(revision 3647)
+++ modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/lsf/QueuePoller.java	(working copy)
@@ -89,10 +89,8 @@
 			if (line != null) {
 				String jobid = parseToWhitespace(line, jobIDIndex);
 				String state = parseToWhitespace(line, stateIndex);
-				if (jobid == null || jobid.equals("") || state == null
-						|| state.equals("")) {
-					throw new IOException("Failed to parse bjobs line: "
-							+ line);
+				if (jobid == null || jobid.equals("") || state == null || state.equals("")) {
+                                	continue;
 				}
 				
 				Job job = getJob(jobid);
@@ -145,4 +143,4 @@
 	
 	protected void processStderr(InputStream is) throws IOException {
 	}
-}
\ No newline at end of file
+}



More information about the Swift-commit mailing list