mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Add timeout on program exit
I have some issues currently where some scripts never finish as clearml is stuck waiting for events, I'm not sure why it happens but there should be a timeout anyway.
This commit is contained in:
parent
c451589298
commit
4cb57232af
@ -314,7 +314,7 @@ class Reporter(InterfaceBase, AbstractContextManager, SetupUploadMixin, AsyncMan
|
||||
def _handle_program_exit(self):
|
||||
try:
|
||||
self.flush()
|
||||
self.wait_for_events()
|
||||
self.wait_for_events(timeout=10)
|
||||
self.stop()
|
||||
except Exception as e:
|
||||
logging.getLogger("clearml.reporter").warning(
|
||||
|
Loading…
Reference in New Issue
Block a user