diff --git a/heat/engine/service.py b/heat/engine/service.py index e4ca98be23..d9dcfb01e4 100644 --- a/heat/engine/service.py +++ b/heat/engine/service.py @@ -746,6 +746,9 @@ class EngineService(service.Service): # Current engine has the lock if acquire_result == self.engine_id: + # give threads which are almost complete an opportunity to + # finish naturally before force stopping them + eventlet.sleep(0.2) self.thread_group_mgr.stop(stack.id) # Another active engine has the lock