# pzAddWorkItemInHistory Queue Processor usage

**URL:** <https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759>\
**Category:** Pega-as-a-Service\
**Created:** [October 13, 2026, 2:23pm UTC](https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759 "2026-10-13T14:23:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jey2705](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@Jey2705](https://forums.pega.com/u/Jey2705)\
**Post date:** [October 13, 2026, 2:23pm UTC](https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759/1 "2026-10-13T14:23:44Z")

</div>

**Hi all,**

Could someone clarify the purpose of `pzAddWorkItemInHistory` in **Pega 26.1.1**? After the upgrade, we noticed a sudden influx of queue items in this Queue Processor.

We also found an application setting used in the QP activity, `pyAuditHistoryRetryForQP`, which controls the maximum retry count and is set to **10** by default. Would it be appropriate to reduce this to **2 or 3**? Is there a recommended value for this setting?

Any insight would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![RohitGanesh](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@RohitGanesh](https://forums.pega.com/u/RohitGanesh)\
**Post date:** [October 13, 2026, 4:20pm UTC](https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759/2 "2026-10-13T16:20:05Z")

</div>

Hi,

`pzAddWorkItemInHistory` is an internal Pega Queue Processor responsible for asynchronously persisting work item events to the case history. It helps maintain the audit trail by recording case-related activities in the background.

Regarding the increase in queue items after upgrading to **Pega 26.1.1** , it would be worth investigating whether the upgrade introduced any changes in processing behavior, database performance, or retry handling.

We also found that the application setting `pyAuditHistoryRetryForQP`, which controls the retry count within the Queue Processor activity, is set to **10** by default across all production levels. Although the Queue Processor itself has `pyMaxAttempts = 1`, the activity handles retries internally.

Reducing this setting to 2 or 3 may increase the risk of losing history entries when transient failures, database contention, or lock timeouts occur. Since this setting appears to be the primary retry mechanism, I would recommend retaining the default value of 10 unless there is evidence that retries are contributing to the performance issue.

I could not identify a documented Pega recommendation to reduce this setting to a specific lower value. Before making any changes, I would suggest monitoring the Queue Processor backlog, reviewing the activity’s retry behavior, and identifying the root cause of the increased queue volume after the upgrade. Any proposed change should first be validated in a lower environment through load testing.

Has anyone observed similar behavior after upgrading to Pega 26.1.1, or can anyone share guidance on the recommended configuration for `pyAuditHistoryRetryForQP`?

Thanks in advance for your insights.

---

<div class="post-metadata">

**Author:** ![Jey2705](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@Jey2705](https://forums.pega.com/u/Jey2705)\
**Post date:** [October 13, 2026, 5:10pm UTC](https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759/3 "2026-10-13T17:10:34Z")

</div>

Thanks for your response. So, is pzAddWorkItemInHistory the new approach for writing case audit history for workflow changes and other updates? We are seeing these events being triggered across the application during case workflow migration, as multiple users are working on it.

---

<div class="post-metadata">

**Author:** ![RohitGanesh](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@RohitGanesh](https://forums.pega.com/u/RohitGanesh)\
**Post date:** [October 13, 2026, 5:59pm UTC](https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759/4 "2026-10-13T17:59:23Z")

</div>

Hi Jeyachandra,

From our investigation, pzAddWorkItemInHistory is an internal Queue Processor that handles case history entries asynchronously. However, I haven’t been able to confirm whether this is a newly introduced approach in Pega 26.1.1 or an existing mechanism whose behavior has changed after the upgrade.

Your observation about these events occurring across the application during case workflow migration is interesting. The increased queue volume could be related to the number of case updates and history entries generated while multiple users are working concurrently, but we would need further evidence to establish the exact cause.

It would be helpful to confirm whether Pega 26.1.1 introduced any changes to case history processing or whether this increase in queue activity is expected during workflow migration.

---

<div class="post-metadata">

**Author:** ![Jey2705](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@Jey2705](https://forums.pega.com/u/Jey2705)\
**Post date:** [October 14, 2026, 10:55am UTC](https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759/5 "2026-10-14T10:55:16Z")

</div>

Hi Rohit,  
Yes, we wanted to get a better understanding of this new Queue Processor and work with our Kafka Admins to tune the partitioning to support PROD load.

---

<div class="post-metadata">

**Author:** ![RohitGanesh](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@RohitGanesh](https://forums.pega.com/u/RohitGanesh)\
**Post date:** [October 14, 2026, 5:20pm UTC](https://forums.pega.com/t/pzaddworkiteminhistory-queue-processor-usage/13759/6 "2026-10-14T17:20:00Z")

</div>

Hi Jeychandra,

I’m not entirely sure whether tuning Kafka partitioning would be feasible or applicable to this Queue Processor, as we haven’t yet confirmed the underlying processing mechanism and its dependencies. I would suggest raising a support ticket with Pega to clarify the Queue Processor’s behavior and understand the recommended approach for handling PROD load. Their guidance should help you make an informed decision before making any configuration changes.

Thanks,

Rohit
