From ff3c6af1d60a30102b5ad68db4c6c8d852099166 Mon Sep 17 00:00:00 2001 From: Daniel Edgecumbe <45787862+ls-daniel@users.noreply.github.com> Date: Fri, 1 Feb 2019 08:32:24 +0000 Subject: [PATCH] [autoscaler]: Remove assertion in info string (#3916) Fixes #3903 --- python/ray/autoscaler/autoscaler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/autoscaler/autoscaler.py b/python/ray/autoscaler/autoscaler.py index a01b7e7a03f1..da0f4eab38d6 100644 --- a/python/ray/autoscaler/autoscaler.py +++ b/python/ray/autoscaler/autoscaler.py @@ -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: