mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 00:28:45 +08:00
Fix json.loads compatibility issue for Python 3.5 (#5466)
This commit is contained in:
committed by
Robert Nishihara
parent
b1aae0e398
commit
8ed353ad8e
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user