mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
@@ -112,8 +112,12 @@ class Reporter(object):
|
||||
def get_workers():
|
||||
return [
|
||||
x.as_dict(attrs=[
|
||||
"pid", "create_time", "cpu_percent", "cpu_times", "cmdline",
|
||||
"memory_info", "memory_full_info"
|
||||
"pid",
|
||||
"create_time",
|
||||
"cpu_percent",
|
||||
"cpu_times",
|
||||
"cmdline",
|
||||
"memory_info",
|
||||
]) for x in psutil.process_iter(attrs=["cmdline"])
|
||||
if is_worker(x.info["cmdline"])
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user