Consistent Name for Process Title (#6276)

* Consistent naming for setprotitle

* Address comments

* Add debug/verbose mode

* Fix test
This commit is contained in:
Simon Mo
2019-11-26 11:56:28 -08:00
committed by Eric Liang
parent 141d667cee
commit 1ca8c427e3
4 changed files with 22 additions and 11 deletions
+4 -4
View File
@@ -536,14 +536,14 @@ cdef execute_task(
b' "task_id": ' + task_id.Hex() + b'}')
if <int>task_type == <int>TASK_TYPE_NORMAL_TASK:
title = "ray_worker:{}()".format(function_name)
next_title = "ray_worker"
title = "ray::{}()".format(function_name)
next_title = "ray::IDLE"
function_executor = execution_info.function
else:
actor = worker.actors[core_worker.get_actor_id()]
class_name = actor.__class__.__name__
title = "ray_{}:{}()".format(class_name, function_name)
next_title = "ray_{}".format(class_name)
title = "ray::{}.{}()".format(class_name, function_name)
next_title = "ray::{}".format(class_name)
worker_name = "ray_{}_{}".format(class_name, os.getpid())
if c_resources.find(b"memory") != c_resources.end():
worker.memory_monitor.set_heap_limit(