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 024c047 commit 3d30cd8Copy full SHA for 3d30cd8
reportportal_client/core/worker.py
@@ -179,10 +179,14 @@ def __perform_stop(self, stop_command):
179
if not self.is_alive():
180
# Already stopped or already dead or not even started
181
return
182
- # Do not release main thread until worker process all requests, since
183
- # main thread might forcibly quit python interpreter
184
with self._stop_lock:
+ if not self.is_alive():
+ # Already stopped by previous thread
185
+ return
186
self.send(stop_command)
187
+ # Do not release main thread until worker process all requests,
188
+ # since main thread might forcibly quit python interpreter as in
189
+ # pytest
190
self._stop_lock.wait(THREAD_TIMEOUT)
191
192
def stop(self):
0 commit comments