[Swift-devel] Patch: provider-localscheduler condor_submit job id parsing

Allan Espinosa aespinosa at cs.uchicago.edu
Tue May 18 17:50:37 CDT 2010


AbstractExecutor.getOutput() adds a newline '\n' character.  So the
job id that gets passed onto createJob is '##.\n'

just added a line as a workaround to the newline in the CondorExecutor
command parser.

diff --git a/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl
index 7e67d64..8b257f1 100644
--- a/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/schedu
+++ b/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/schedu
@@ -236,6 +236,7 @@ public class CondorExecutor extends AbstractExecutor {
        }

        protected String parseSubmitCommandOutput(String out) throws IOException
+               out = out.trim();
                if (out.endsWith(".")) {
                        out = out.substring(0, out.length() - 1);
                }


-- 
Allan M. Espinosa <http://amespinosa.wordpress.com>
PhD student, Computer Science
University of Chicago <http://people.cs.uchicago.edu/~aespinosa>



More information about the Swift-devel mailing list