Remove unnecessary handling of setproctitle and psutil. (#7702)

This commit is contained in:
Robert Nishihara
2020-03-22 22:06:42 -07:00
committed by GitHub
parent 4d722bf003
commit 8b4c2b7e88
6 changed files with 7 additions and 27 deletions
+1 -3
View File
@@ -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