Skip to content
Snippets Groups Projects
Commit 73f0f2fa authored by Martin Lange's avatar Martin Lange
Browse files

don't update finished components

parent 5ec4e13c
No related branches found
No related tags found
1 merge request!159New scheduling algorithm
Pipeline #126731 passed with stages
in 2 minutes and 47 seconds
......@@ -189,7 +189,7 @@ class Composition(Loggable):
any_running = False
for mod in time_modules:
if mod.time < t_max:
if mod.status != ComponentStatus.FINISHED and mod.time < t_max:
any_running = True
break
......@@ -224,7 +224,8 @@ class Composition(Loggable):
return updated
if isinstance(module, ITimeComponent):
module.update()
if module.status != ComponentStatus.FINISHED:
module.update()
return module
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment