Commit ace36c1c authored by Daniele Venzano's avatar Daniele Venzano

Fix setting size

parent 8f946621
......@@ -158,7 +158,7 @@ class ZoeElasticScheduler:
if execution.size == 0 or exec_data.last_time_scheduled == 0:
continue
elif execution.size < 0:
execution.size = 0
execution.set_size(0)
new_size = execution.size - (time.time() - exec_data.last_time_scheduled) * (32 * 1024 ** 2) # to be tuned
execution.set_size(new_size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment