Skip to Content
author's profile photo Former Member
Former Member

Dynamically changing the queue execution size

Hi all,

I need to control the number of parallel JOBs according some periods (E.g.: 00:00 until 06:00 -> 10 Jobs and 06:01 until 23:59 -> 5 Jobs).

So, I will try to create a JD based on Redwoodscript and schedule it in the needed time to change the queue execution size to the correct number as informed in the Job parameter.

Can anybody kindly send me an example to how use the method setExecutionSize. I'm using Cronacle V8 M33.27-51134.

I found a very good example in the thread using-rz20-monitoring-values-in-redwood, but it doesn't work in my Cronacle version.... and I donu2019t know how to adapt it to my needed.

Thanks a lot,

Douglas Marques

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 21, 2011 at 07:34 AM

    Hello,

    You can try the following:

    {
      Queue q = jcsSession.getQueueByName("<queue name>");
      q.setExecutionSize(new Long(xx));
    }

    Regards Gerben

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 07:43 PM

    Hi Gerben,

    thanks a lot for the example!

    I was trying the following: "setExecutionSize( 10 );"

    Best Regards,

    Douglas Marques

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.