Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Question: Alternative to vim3WaitTaskEnd method?

$
0
0

I am looking for an alternative to the vim3WaitTaskEnd method...

 

Scenario:

 

Lets say I have an array of VMs that I need to migrate to another host.  The following example loops through my array of VMs one at a time waiting for each migration to complete before moving onto the next VM.  I'd rather batch the tasks together or queue them up (similar to running workflows in parallel works) then wait for all tasks to complete.



for (s = 0; s < targetVM.length; s++) {  task = targetVM[s].migrateVM_Task(resourcePool, Host2, VcVirtualMachineMovePriority.highPriority, null);  actionResult = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task, true, 10);
}

 

Any thoughts or direction would be greatly appreciated.

 

Adam


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>