mirror of
https://github.com/wassname/ray.git
synced 2026-07-03 10:02:15 +08:00
Name Python threads. (#2767)
This commit is contained in:
committed by
Philipp Moritz
parent
32f7d6fcf5
commit
224d38cbb2
@@ -35,7 +35,7 @@ class ImportThread(object):
|
||||
|
||||
def start(self):
|
||||
"""Start the import thread."""
|
||||
t = threading.Thread(target=self._run)
|
||||
t = threading.Thread(target=self._run, name="ray_import_thread")
|
||||
# Making the thread a daemon causes it to exit
|
||||
# when the main thread exits.
|
||||
t.daemon = True
|
||||
|
||||
Reference in New Issue
Block a user