mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
Remove unnecessary handling of setproctitle and psutil. (#7702)
This commit is contained in:
@@ -41,10 +41,8 @@ class RayTaskError(RayError):
|
||||
"""Initialize a RayTaskError."""
|
||||
if proctitle:
|
||||
self.proctitle = proctitle
|
||||
elif setproctitle:
|
||||
self.proctitle = setproctitle.getproctitle()
|
||||
else:
|
||||
self.proctitle = "ray_worker"
|
||||
self.proctitle = setproctitle.getproctitle()
|
||||
self.pid = pid or os.getpid()
|
||||
self.ip = ip or ray.services.get_node_ip_address()
|
||||
self.function_name = function_name
|
||||
|
||||
Reference in New Issue
Block a user