diff options
author | Tomas Vondra | 2016-10-13 11:41:43 +0000 |
---|---|---|
committer | Tomas Vondra | 2017-02-27 00:32:08 +0000 |
commit | d8fe8b8ca939089d3fbe31b8904aa532bac294a5 (patch) | |
tree | ce23157a377aa1c1eb3b6b41f743b48a9db5e2ed /client/utils/logging.py | |
parent | 128ad6eb0c757c34b9332cd41e79efe6b73e887a (diff) |
fix lockups in PostgreSQL collector
When the workers produce results and return them through a queue, we need
to first drain the queue and then wait for the thread to join(). Otherwise
it seems to lock up - the join() call with wait as long as there are items
in the queue. This also happens because we do both things (reading from
queue and waiting for the thread) in the same thread.
Diffstat (limited to 'client/utils/logging.py')
0 files changed, 0 insertions, 0 deletions