Use thread name in launcher ID

The Thread.ident attribute is apparently returning None for some
reason in tests, causing our launchers to share an ID. Change it
to Thread.name, which we know has a value.

Change-Id: Ib5c54804224ffd147372b2d1cfa6b62cc8a8b4cc
This commit is contained in:
David Shrewsbury 2017-02-16 16:27:26 -05:00
parent 64b39bf970
commit b2d053d06c

View File

@ -1021,7 +1021,7 @@ class ProviderWorker(threading.Thread):
self.zk = self.getZK()
self.launcher_id = "%s-%s-%s" % (socket.gethostname(),
os.getpid(),
self.ident)
self.name)
#----------------------------------------------------------------
# Private methods