Skip to content

Commit

Permalink
[autoscaler]: Remove assertion in info string (ray-project#3916)
Browse files Browse the repository at this point in the history
  • Loading branch information
ls-daniel authored and richardliaw committed Feb 1, 2019
1 parent 1302faf commit ff3c6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ray/autoscaler/autoscaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _info(self):
resources_total[resource_id] = 0.0
resources_used[resource_id] += used
resources_total[resource_id] += amount
assert used >= 0
used = max(0, used)
if amount > 0:
frac = used / float(amount)
if frac > max_frac:
Expand Down

0 comments on commit ff3c6af

Please sign in to comment.