[Swift-user] Re: How to set provider-specific options?

Michael Wilde wilde at mcs.anl.gov
Thu Feb 25 15:59:06 CST 2010


Do you see any reason not to make the script.deleteOnExit() conditional on the value of the debug= property?

- Mike


----- "Mihael Hategan" <hategan at mcs.anl.gov> wrote:

> No. But you missed:
>  script = File.createTempFile(getName(), ".submit", scriptdir);
>  script.deleteOnExit();
> 
> On Thu, 2010-02-25 at 14:58 -0600, Michael Wilde wrote:
> > Did I mis-interpret the following code in AbstractExecutor.java?
> > 
> >         protected void cleanup() {
> >                 if (!getProperties().isDebugEnabled()) {
> >                         script.delete();
> >                         new File(exitcode).delete();
> >                         if (spec.getStdOutput() == null && stdout !=
> null) {
> >                                 new File(stdout).delete();
> >                         }
> >                         if (spec.getStdError() == null && stderr !=
> null) {
> >                                 new File(stderr).delete();
> >                         }
> >                 }
> >         }
> > 
> > - Mike
> > 
> > ----- "Mihael Hategan" <hategan at mcs.anl.gov> wrote:
> > 
> > > On Thu, 2010-02-25 at 14:46 -0600, wilde at mcs.anl.gov wrote:
> > > > I tried to set debug=true as the last line in
> > > > etc/provider-pbs.properties in my swift dist directory, hoping
> to
> > > get
> > > > the PBS provider to retain the .submit file in
> ~/.globus/scripts.
> > > > That didnt seem to work: I didnt get a .submit file there.
> > > 
> > > I don't see any code that would prevent the deletion of the script
> if
> > > debug was set to true in that file.
> > > 
> > > What I would suggest is submitting some long-ish job and then
> copying
> > > the submit scripts from ~/.globus/scripts before they go away.



More information about the Swift-user mailing list