mirror of
https://github.com/wassname/ray.git
synced 2026-07-27 11:26:41 +08:00
Consistent Name for Process Title (#6276)
* Consistent naming for setprotitle * Address comments * Add debug/verbose mode * Fix test
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user