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:
Sven Mika
2020-01-13 14:31:13 -08:00
committed by Eric Liang
parent fc473e6a08
commit 4ee566129f
+6 -2
View File
@@ -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)