mirror of
https://github.com/wassname/ray.git
synced 2026-08-18 12:20:14 +08:00
Name Python threads. (#2767)
This commit is contained in:
committed by
Philipp Moritz
parent
32f7d6fcf5
commit
224d38cbb2
@@ -2259,10 +2259,15 @@ def connect(info,
|
||||
# scheduler for new error messages.
|
||||
if mode == SCRIPT_MODE:
|
||||
if not worker.use_raylet:
|
||||
t = threading.Thread(target=print_error_messages, args=(worker, ))
|
||||
t = threading.Thread(
|
||||
target=print_error_messages,
|
||||
name="ray_print_error_messages",
|
||||
args=(worker, ))
|
||||
else:
|
||||
t = threading.Thread(
|
||||
target=print_error_messages_raylet, args=(worker, ))
|
||||
target=print_error_messages_raylet,
|
||||
name="ray_print_error_messages",
|
||||
args=(worker, ))
|
||||
# Making the thread a daemon causes it to exit when the main thread
|
||||
# exits.
|
||||
t.daemon = True
|
||||
|
||||
Reference in New Issue
Block a user