mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Fix hang when leaving process
This commit is contained in:
parent
91d63df488
commit
6ed4826c65
@ -99,7 +99,7 @@ class BackgroundReportService(BackgroundMonitor, AsyncManagerMixin):
|
|||||||
events = []
|
events = []
|
||||||
while not self._queue.empty():
|
while not self._queue.empty():
|
||||||
try:
|
try:
|
||||||
events.append(self._queue.get())
|
events.append(self._queue.get(block=False))
|
||||||
except Empty:
|
except Empty:
|
||||||
break
|
break
|
||||||
if not events:
|
if not events:
|
||||||
|
Loading…
Reference in New Issue
Block a user