diff --git a/torchx/schedulers/local_scheduler.py b/torchx/schedulers/local_scheduler.py index c7cf7cc76..c039ebf54 100644 --- a/torchx/schedulers/local_scheduler.py +++ b/torchx/schedulers/local_scheduler.py @@ -1159,6 +1159,7 @@ def __iter__(self) -> "LogIterator": self._check_finished() # check to see if app has finished running if os.path.isfile(self._log_file): + time.sleep(0.1) # fix timing issue self._log_fp = open( self._log_file, mode="rt",