diff --git a/director/lib/director/package_compiler.rb b/director/lib/director/package_compiler.rb index 23a479145fe..63f32a97de7 100644 --- a/director/lib/director/package_compiler.rb +++ b/director/lib/director/package_compiler.rb @@ -182,8 +182,10 @@ def compile_packages # happen until everything was done compiling. if @deployment_plan.compilation.reuse_compilation_vms @vm_reuser.each do |vm_data| - tear_down_vm(vm_data) + pool.process { tear_down_vm(vm_data) } end + + pool.wait end end end