Contributor
Contributor

How add next task to queue on the same host ?

Jump to solution

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
Immortal
Immortal

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
Leadership
Leadership

Why doesn't the -RunAsync parameter help you ?


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

0 Kudos
Contributor
Contributor

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
Immortal
Immortal

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