Fix json.loads compatibility issue for Python 3.5 (#5466)

This commit is contained in:
Mitchell Stern
2019-08-17 00:33:55 -07:00
committed by Robert Nishihara
parent b1aae0e398
commit 8ed353ad8e
+1 -1
View File
@@ -272,7 +272,7 @@ class NodeStats(threading.Thread):
for x in p.listen():
try:
D = json.loads(x["data"])
D = json.loads(ray.utils.decode(x["data"]))
with self._node_stats_lock:
self._node_stats[D["hostname"]] = D
except Exception: