Commit d16e6fd9 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

workerpool: Use worker name as thread name

This way it shows up in debug logs.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 89e2b4d2
......@@ -42,7 +42,7 @@ class BaseWorker(threading.Thread, object):
@param worker_id: identifier for this worker
super(BaseWorker, self).__init__()
super(BaseWorker, self).__init__(name=worker_id)
self.pool = pool
self.worker_id = worker_id
self._current_task = None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment