Announcement Announcement Module
Collapse
No announcement yet.
Restricting the number of flow in split or setting throttle limit Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restricting the number of flow in split or setting throttle limit

    Is there a way to set a throttle limit in split flows.

    I will be configuring around 20 flows in the below example but I want to control the number of flows executed in parallel.
    Is there anyway I can set that in split flow and is the default value of 4 applicable to split flow as well. I am using SimpleAsyncTaskExecutor for the one below. In the tasklet I am writing generic logic.

    <batch:split id="splitName" task-executor="taskExecutor" >
    <!-- ================================================== =========== -->
    <!-- Flow 1 -->
    <!-- ================================================== =========== -->
    <batch:flow>
    <batch:step id="step1Name"
    next="Step1NameCtl">
    <batch:tasklet ref="step1Ref" />
    </batch:step>

    <batch:step id="Step1NameCtl">
    <batch:tasklet ref="step1RefCtl" />
    </batch:step>
    </batch:flow>
    <!-- ================================================== =========== -->
    <!-- Flow 2 -->
    <!-- ================================================== =========== -->
    <batch:flow>
    <batch:step id="step2Name"
    next="step2NameCtl">
    <batch:tasklet ref="step2Ref" />
    </batch:step>

    <batch:step id="step2NameCtl">
    <batch:tasklet ref="step2RefCtl" />
    </batch:step>
    </batch:flow>
    </batch:split>

    Thanks in advance.

  • #2
    Why wouldn't you just limit the size of the thread pool your task executor creates to 4 (or is there threading done within some of these flows)?

    Comment

    Working...
    X