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

Mihael Hategan hategan at mcs.anl.gov
Tue May 18 20:18:26 CDT 2010


cog trunk/r2752 and one virtual cookie.

Mihael

On Tue, 2010-05-18 at 17:50 -0500, Allan Espinosa wrote:
> 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);
>                 }
> 
> 




More information about the Swift-devel mailing list