mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 04:47:52 +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:
@@ -1843,10 +1843,10 @@ def test_ray_setproctitle(ray_start_2_cpus):
|
||||
@ray.remote
|
||||
class UniqueName(object):
|
||||
def __init__(self):
|
||||
assert setproctitle.getproctitle() == "ray_UniqueName:__init__()"
|
||||
assert setproctitle.getproctitle() == "ray::UniqueName.__init__()"
|
||||
|
||||
def f(self):
|
||||
assert setproctitle.getproctitle() == "ray_UniqueName:f()"
|
||||
assert setproctitle.getproctitle() == "ray::UniqueName.f()"
|
||||
|
||||
@ray.remote
|
||||
def unique_1():
|
||||
|
||||
Reference in New Issue
Block a user