VMware Cloud Community
strikaw
Contributor
Contributor
Jump to solution

How add next task to queue on the same host ?

Hello,

Is there any way to add a few tasks of cloning systems on a single host ?

The remaining tasks should be given  with state Queue" , in order not to burden the host.
Using a script I run other tasks on few hosts, the use options  -Runasync does not help me.

Is there any way to do it?

Regards.

0 Kudos
1 Solution

Accepted Solutions
mcowger
Immortal
Immortal
Jump to solution

It will actually eventually starting queing those jobs, you just haven't hit the 'simultaneous job limit' yet.  I believe that limit is 8 per host.

--Matt VCDX #52 blog.cowger.us

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

Why doesn't the -RunAsync parameter help you ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
strikaw
Contributor
Contributor
Jump to solution

I have CSV file (vm, host):

vmA1,hostA

vmA2,hostA

vmA3,hostA

vmB1,hostB

vmB2,hostB

vmB3,hostB

I want to run only one job cloning on the host.

If i used function "foreach" and start cloning job New-VM with -Runasync all jobs have status Running.

I would like to make it look:

I check whether the task is already running on host.

If yes, it adds  job with status Queue.

vmA1 - Running

vmA2 - Queue

vmA3 - Queue

vmB1 - Running

vmB2 - Queue

vmB3 - Queue

0 Kudos
mcowger
Immortal
Immortal
Jump to solution

It will actually eventually starting queing those jobs, you just haven't hit the 'simultaneous job limit' yet.  I believe that limit is 8 per host.

--Matt VCDX #52 blog.cowger.us
0 Kudos