mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 04:23:03 +08:00
Ignore io.UnsupportedOperation error when "Enabling nice stack traces on SIGSEGV etc." in worker.py::connect(). (#6771)
- Fixes RLlib tf-eager test cases for all agents when run locally on Ubuntu and Mac.
This commit is contained in:
@@ -4,6 +4,7 @@ import atexit
|
||||
import faulthandler
|
||||
import hashlib
|
||||
import inspect
|
||||
import io
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
@@ -1104,8 +1105,11 @@ def connect(node,
|
||||
assert worker.cached_functions_to_run is not None, error_message
|
||||
|
||||
# Enable nice stack traces on SIGSEGV etc.
|
||||
if not faulthandler.is_enabled():
|
||||
faulthandler.enable(all_threads=False)
|
||||
try:
|
||||
if not faulthandler.is_enabled():
|
||||
faulthandler.enable(all_threads=False)
|
||||
except io.UnsupportedOperation:
|
||||
pass # ignore
|
||||
|
||||
ray._raylet.set_internal_config(internal_config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user