Autoscaler hotfix for #4555. (#4653)

This commit is contained in:
Romil Bhardwaj
2019-05-08 14:50:52 -07:00
committed by Robert Nishihara
parent 28496c8b50
commit 0421cba4e8
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ class Monitor(object):
for j in range(message.BatchLength()):
heartbeat_message = message.Batch(j)
num_resources = heartbeat_message.ResourcesAvailableLabelLength()
num_resources = heartbeat_message.ResourcesTotalLabelLength()
static_resources = {}
dynamic_resources = {}
for i in range(num_resources):