Skip to content
Snippets Groups Projects

startup sequencer: when START_MODELS is false, run startup sequencer, but...

Merged Erik von Reis requested to merge erik.vonreis/advligorts:usable_no_model_start into master
1 file
+ 6
6
Compare changes
  • Side-by-side
  • Inline
@@ -19,9 +19,6 @@ class Sequencer(object):
self.processes = FrontEndProcesses(target_dir)
def create_start_sequence(self):
if not self.options["START_MODELS"]:
klog("START_MODELS is false. Quitting")
return
if self.options["CDSRFM"]:
klog("is CDSRFM host")
before_world, world = self.create_cdsrfm_start_sequence(self.processes,
@@ -29,7 +26,7 @@ class Sequencer(object):
else:
klog("is standard front end host")
before_world, world = self.create_frontend_start_sequence()
self.link_sequence(before_world, world)
self.link_sequence(before_world, world, self.options["START_MODELS"])
def create_frontend_start_sequence(self):
before_world = []
@@ -75,7 +72,7 @@ class Sequencer(object):
]
return before_world, world
def link_sequence(self, before_world, world):
def link_sequence(self, before_world, world, start_models):
self.processes.create_world_target()
# link the first of each process to multi-user or to the world target
@@ -86,7 +83,10 @@ class Sequencer(object):
self.processes.part_of(process.start, "rts-world.target")
if len(before_world) > 0:
self.processes.after("rts-world.target", before_world[-1].end)
self.processes.link_to("rts-world.target", "multi-user.target")
if start_models:
self.processes.link_to("rts-world.target", "multi-user.target")
else:
klog("START_MODELS is false. Skipping model start.")
self.processes.serialize_processes(before_world + world)
class Delay(object):
Loading