e372c0625752e32c80168c03e381271aab412d0f,python/ray/dashboard/node_stats.py,NodeStats,run,#NodeStats#,175
Before Change
p.subscribe(error_channel)
logger.info("NodeStats: subscribed to {}".format(error_channel))
actor_channel = ray.gcs_utils.TablePubsub.Value("ACTOR_PUBSUB")
p.subscribe(actor_channel)
logger.info("NodeStats: subscribed to {}".format(actor_channel))
current_actor_table = ray.actors()
After Change
for x in p.listen():
try:
with self._node_stats_lock:
channel = ray.utils.decode(x["channel"])\
if "pattern" not in x\
else x["pattern"]
data = x["data"]
if channel == log_channel:
data = json.loads(ray.utils.decode(data))
ip = data["ip"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: ray-project/ray
Commit Name: e372c0625752e32c80168c03e381271aab412d0f
Time: 2020-06-04
Author: rkooo567@gmail.com
File Name: python/ray/dashboard/node_stats.py
Class Name: NodeStats
Method Name: run
Project Name: streamlit/streamlit
Commit Name: 80a927a861111c34599f8e0105942192ed37e6e7
Time: 2018-08-16
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: _handle_backend_msg
Project Name: streamlit/streamlit
Commit Name: 1b66cff1b4af1b32d72839af19282f526d04acf0
Time: 2018-08-15
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: _handle_backend_msg