Skip to content

Commit

Permalink
added flush
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 26, 2019
1 parent 914bd9c commit 69894fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test_tube/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,14 @@ def on_exit(self):

def __clean_dir(self):
files = os.listdir(self.log_dir)
print(files)

if self.rank == 0:
return

for f in files:
if self.process in f:
pass
self.close()
os.remove(f)

def argparse(self, argparser):
parsed = vars(argparser)
Expand Down

0 comments on commit 69894fc

Please sign in to comment.