Mercurial > hg > cc > cirrus_home
diff bin/plinks.py @ 11:b0d9fe66ce8a
give up on mpiexec_mpt
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 25 Feb 2020 18:33:22 +0000 |
parents | a33db8e3f51c |
children | 3bc1d24363a1 |
line wrap: on
line diff
--- a/bin/plinks.py Tue Feb 25 14:56:36 2020 +0000 +++ b/bin/plinks.py Tue Feb 25 18:33:22 2020 +0000 @@ -19,6 +19,7 @@ if limited: print("%s\t%s\tProcessing limited after timeout"%( datetime.now().isoformat(),fno),file=bf) + bf.flush() if bool(links) and (links.get('scrape',False) or links.get('annot',False)): gf+=1 @@ -30,13 +31,15 @@ if str(e)=='Unexpected EOF': print("%s:\t%s\t%s\t%s"%(datetime.now().isoformat(), tarnum,fno,e),file=bf) + bf.flush() else: print("%s: "%(datetime.now().isoformat()),end='',file=bf) traceback.print_exc(file=bf) - - if (path.exists('/dev/shm/stopJob')): + bf.flush() + if path.exists('stopJob'): print("%s: Quiting early: %s %s"%(datetime.now().isoformat(),tarnum,fno), file=sys.stderr) + sys.stderr.flush() exit(1) now=datetime.now().isoformat() print('%s: exiting from %s having found %s files with links out of %s'%(now,