Automation

 View Only
  • 1.  How add next task to queue on the same host ?

    Posted Apr 02, 2011 08:17 PM

    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.



  • 2.  RE: How add next task to queue on the same host ?

    Posted Apr 02, 2011 08:32 PM

    Why doesn't the -RunAsync parameter help you ?



  • 3.  RE: How add next task to queue on the same host ?

    Posted Apr 03, 2011 10:39 AM

    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



  • 4.  RE: How add next task to queue on the same host ?
    Best Answer

    Posted Apr 03, 2011 05:56 PM

    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.