Skip to content
Snippets Groups Projects
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 <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 89e2b4d2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment