For threads that drive autoscaling events, run them to completion using the
task scheduler, to abstract out the sleeping from the main code.
Change-Id: I9b21404a171d92d6edbc59d3099d3ee34f08e22d
# License for the specific language governing permissions and limitations
# under the License.
-import eventlet
-
from heat.common import exception
from heat.engine import resource
from heat.engine import scheduler
return creator.step()
def _wait_for_activation(self, creator):
- while not self.check_active(creator):
- eventlet.sleep(1)
+ if creator is not None:
+ creator.run_to_completion()
def handle_update(self, json_snippet):
try: