From 57c3bc7a8c351cbd8615bad50241e6aace720606 Mon Sep 17 00:00:00 2001 From: Alina Quereilhac Date: Mon, 29 Jul 2013 14:49:12 -0700 Subject: [PATCH] Fixing bug in group deployment. Repeated start_with_conditions invokation --- src/nepi/execution/ec.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nepi/execution/ec.py b/src/nepi/execution/ec.py index e81854ba..de013d1c 100644 --- a/src/nepi/execution/ec.py +++ b/src/nepi/execution/ec.py @@ -581,8 +581,10 @@ class ExperimentController(object): if isinstance(guids, int): guids = [guids] - # Create deployment group + # Create deployment group + new_group = False if not group: + new_group = True group = self._group_id_generator.next(guid) if group not in self._groups: @@ -623,7 +625,7 @@ class ExperimentController(object): rm = self.get_resource(guid) self.schedule("0s", rm.start_with_conditions) - if wait_all_ready: + if wait_all_ready and new_group: # Schedule a function to check that all resources are # READY, and only then schedule the start. # This aimes at reducing the number of tasks looping in the -- 2.43.0