else: joblist.append(job) if listonly: if verbose: for job in joblist: job.printinfo() else: for job in joblist: print job.name sys.exit(0) if not onlyecho: newlist = [] for job in joblist: jobdir = JobDir(joinpath(conf.rootdir, job.name)) if jobdir.exists(): if not force: status = jobdir.getstatus() if status == 'queued': continue if status == 'running': continue if status == 'success': continue if not clean: sys.exit('job directory %s not clean!' % jobdir)