Commit 6434a789 authored by Daniele Venzano's avatar Daniele Venzano

Catch exception due to race condition

parent e7953b0d
......@@ -134,7 +134,10 @@ class ZoeElasticScheduler:
return
elif self.policy == "DYNSIZE":
for execution in self.queue: # type: Execution
exec_data = self.additional_exec_state[execution.id]
try:
exec_data = self.additional_exec_state[execution.id]
except KeyError:
continue
if exec_data.last_time_scheduled == 0:
continue
elif execution.size <= 0:
......
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