Automic Workload Automation

 View Only
  • 1.  Queue slots limitation not being enforced

    Posted Mar 21, 2018 06:33 AM
    Hi everyone,
    I have a script activating a JOB.
    In the pre-process tab of the JOB I set the queue for the JOB a documented here: https://docs.automic.com/documentation/webhelp/english/AWA/12.1/DOCU/12.1/AWA%20Guides/help.htm#AE_AWA_Source/Script/ucaads.htm

    This is the code:
    :PUT_ATT QUEUE = 'QUEUE.MY_QUEUE'

    The above queue has just one slot. When I activate the job it goes in the right queue, however the slot limitation is not enforced, i.e. if 4 jobs are trigger they will all run in parallel.
    Is there a workaround besides generating the job at activation time?

    thanks in advance,
    Marco


  • 2.  Queue slots limitation not being enforced
    Best Answer

    Posted Mar 21, 2018 07:21 AM
    Hi

    Yeah, there is a workaround for this issue (=design issue).

    Put your JOBS(with gen@runtime NOT checked) into a Workflow(with gen@runtime checked) and it will work.
    :)

    cheers, Wolfgang


  • 3.  Queue slots limitation not being enforced

    Posted Mar 21, 2018 07:22 AM
    I worked-around it with the following code in the pre-process tab.

    :PUT_ATT QUEUE = 'QUEUE.&MY_QUEUE#'
    :SET &RET# =MODIFY_TASK (&$RUNID#, STOP)
    :SET &RET# =MODIFY_TASK (&$RUNID#, GO, FORCED)