Skip to content

Commit 2dec93f

Browse files
workers warning not on windows (#1433)
1 parent 17f58d2 commit 2dec93f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytorch_lightning/trainer/training_loop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ def train(self):
386386
self.run_training_teardown()
387387

388388
except KeyboardInterrupt:
389-
log.info('Detected KeyboardInterrupt, attempting graceful shutdown...')
389+
if self.proc_rank == 0:
390+
log.info('Detected KeyboardInterrupt, attempting graceful shutdown...')
390391
self.interrupted = True
391392
self.run_training_teardown()
392393

0 commit comments

Comments
 (0)