[Swift-commit] cog r3647

swift at ci.uchicago.edu swift at ci.uchicago.edu
Mon Mar 25 11:35:04 CDT 2013


------------------------------------------------------------------------
r3647 | davidkelly999 | 2013-03-25 11:34:09 -0500 (Mon, 25 Mar 2013) | 2 lines

Some bjobs data (like the EXEC_HOST) can be split across multiple lines

------------------------------------------------------------------------
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 3646)
+++ 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