From: Alina Quereilhac Date: Mon, 29 Jul 2013 21:49:12 +0000 (-0700) Subject: Fixing bug in group deployment. Repeated start_with_conditions invokation X-Git-Tag: nepi-3.0.0~53 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=57c3bc7a8c351cbd8615bad50241e6aace720606;p=nepi.git Fixing bug in group deployment. Repeated start_with_conditions invokation --- 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