We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb90d8 commit 3f8783cCopy full SHA for 3f8783c
simvue/worker.py
@@ -145,11 +145,11 @@ def run(self):
145
pass
146
buffer = []
147
148
- if self._shutdown_event.is_set():
+ if self._shutdown_event.is_set() or not self._parent_thread.is_alive():
149
if self._metrics_queue.empty() and self._events_queue.empty():
150
sys.exit(0)
151
else:
152
counter = 0
153
- while counter < POLLING_INTERVAL and not self._shutdown_event.is_set():
+ while counter < POLLING_INTERVAL and not self._shutdown_event.is_set() and self._parent_thread.is_alive():
154
time.sleep(1)
155
counter += 1
0 commit comments