File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,7 @@ def connect(node,
1164
1164
worker .worker_id = ray .utils .compute_driver_id_from_job (
1165
1165
job_id ).binary ()
1166
1166
1167
- if mode is not SCRIPT_MODE and setproctitle :
1167
+ if mode is not SCRIPT_MODE and mode is not LOCAL_MODE and setproctitle :
1168
1168
process_name = ray_constants .WORKER_PROCESS_TYPE_IDLE_WORKER
1169
1169
if mode is IO_WORKER_MODE :
1170
1170
process_name = ray_constants .WORKER_PROCESS_TYPE_IO_WORKER
@@ -1348,11 +1348,13 @@ def disconnect(exiting_interpreter=False):
1348
1348
1349
1349
@contextmanager
1350
1350
def _changeproctitle (title , next_title ):
1351
- setproctitle .setproctitle (title )
1351
+ if _mode () is not LOCAL_MODE :
1352
+ setproctitle .setproctitle (title )
1352
1353
try :
1353
1354
yield
1354
1355
finally :
1355
- setproctitle .setproctitle (next_title )
1356
+ if _mode () is not LOCAL_MODE :
1357
+ setproctitle .setproctitle (next_title )
1356
1358
1357
1359
1358
1360
def show_in_dashboard (message , key = "" , dtype = "text" ):
You can’t perform that action at this time.
0 commit comments