mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
Fix linting on master branch (#6174)
This commit is contained in:
@@ -279,7 +279,7 @@ class LoadMetrics(object):
|
||||
now - t for t in self.last_heartbeat_time_by_ip.values()
|
||||
]
|
||||
most_delayed_heartbeats = sorted(
|
||||
list(self.last_heartbeat_time_by_ip.items()),
|
||||
self.last_heartbeat_time_by_ip.items(),
|
||||
key=lambda pair: pair[1])[:5]
|
||||
most_delayed_heartbeats = {
|
||||
ip: (now - t)
|
||||
|
||||
@@ -88,17 +88,12 @@ def teardown_cluster(config_file, yes, workers_only, override_cluster_name):
|
||||
if workers_only:
|
||||
A = []
|
||||
else:
|
||||
A = [
|
||||
node_id for node_id in provider.non_terminated_nodes({
|
||||
TAG_RAY_NODE_TYPE: NODE_TYPE_HEAD
|
||||
})
|
||||
]
|
||||
|
||||
A += [
|
||||
node_id for node_id in provider.non_terminated_nodes({
|
||||
TAG_RAY_NODE_TYPE: NODE_TYPE_WORKER
|
||||
A = provider.non_terminated_nodes({
|
||||
TAG_RAY_NODE_TYPE: NODE_TYPE_HEAD
|
||||
})
|
||||
]
|
||||
A += provider.non_terminated_nodes({
|
||||
TAG_RAY_NODE_TYPE: NODE_TYPE_WORKER
|
||||
})
|
||||
return A
|
||||
|
||||
# Loop here to check that both the head and worker nodes are actually
|
||||
|
||||
Reference in New Issue
Block a user