mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 09:39:46 +08:00
Change Proctitle to IDLE after an Error (#7863)
This commit is contained in:
@@ -1344,8 +1344,10 @@ def disconnect(exiting_interpreter=False):
|
||||
@contextmanager
|
||||
def _changeproctitle(title, next_title):
|
||||
setproctitle.setproctitle(title)
|
||||
yield
|
||||
setproctitle.setproctitle(next_title)
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
setproctitle.setproctitle(next_title)
|
||||
|
||||
|
||||
def register_custom_serializer(cls,
|
||||
|
||||
Reference in New Issue
Block a user