# Custom Task Partitioning

**URL:** <https://developer.sailpoint.com/discuss/t/custom-task-partitioning/16347>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq, aggregation\
**Created:** [August 21, 2023, 1:37pm UTC](https://developer.sailpoint.com/discuss/t/custom-task-partitioning/16347 "2023-08-21T13:37:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![recoates](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@recoates](https://developer.sailpoint.com/discuss/u/recoates)\
**Post date:** [August 21, 2023, 1:37pm UTC](https://developer.sailpoint.com/discuss/t/custom-task-partitioning/16347/1 "2023-08-21T13:37:14Z")

</div>

I have an aggregation task that calls a custom task executor. This executor overwrites the execute statement to build a custom query and perform some logic conditions. What is the most effective way to add partitioning/multi-threading to a custom task executor?

---

<div class="post-metadata">

**Author:** ![matioski](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/matioski/32/3850_2.png) [@matioski](https://developer.sailpoint.com/discuss/u/matioski)\
**Post date:** [August 22, 2023, 11:31am UTC](https://developer.sailpoint.com/discuss/t/custom-task-partitioning/16347/2 "2023-08-22T11:31:43Z")

</div>

Hello @recoates ,  
This should help you:  
[https://community.sailpoint.com/t5/Professional-Services/Multi-Threaded-Toolkit/ta-p/190402](https://community.sailpoint.com/t5/Professional-Services/Multi-Threaded-Toolkit/ta-p/190402)

---

<div class="post-metadata">

**Author:** ![Jarin\_James](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jarin_james/32/3372_2.png) [@Jarin\_James](https://developer.sailpoint.com/discuss/u/Jarin_James)\
**Post date:** [August 24, 2023, 5:13am UTC](https://developer.sailpoint.com/discuss/t/custom-task-partitioning/16347/3 "2023-08-24T05:13:47Z")

</div>

Hi @recoates

Welcome to SailPoint Developer Community !!

Please refer the following url which will provide insights on how to partition custom rule. The example showed in that is for request but you can change it to meet your requirement.

> **[Partitioned rule task](https://community.sailpoint.com/t5/IdentityIQ-Wiki/Partitioned-rule-task/ta-p/80044/page/3/show-comments/true)**
>
>   Summary IIQ allows you to run any Rule as a Task via the TaskDefintion called “Run Rule”. This is fine for most use cases, but in our customization, we have found that we want to run a Rule on all of our Identities or ManagedAttributes. In...

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [October 23, 2023, 5:14am UTC](https://developer.sailpoint.com/discuss/t/custom-task-partitioning/16347/4 "2023-10-23T05:14:28Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
