workers warning not on windows (#1433)

This commit is contained in:
William Falcon 2020-04-09 14:46:51 -04:00 committed by GitHub
parent 17f58d2e11
commit 2dec93f588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -386,7 +386,8 @@ class TrainerTrainLoopMixin(ABC):
self.run_training_teardown() self.run_training_teardown()
except KeyboardInterrupt: except KeyboardInterrupt:
log.info('Detected KeyboardInterrupt, attempting graceful shutdown...') if self.proc_rank == 0:
log.info('Detected KeyboardInterrupt, attempting graceful shutdown...')
self.interrupted = True self.interrupted = True
self.run_training_teardown() self.run_training_teardown()