Why Broken Queue items are not getting requeued in Pega 7.1.8

I have a standard agent which runs for every 60 secs and the broken queue items are not getting re-queued on its own even when “Auto Queue Management” checkbox is checked on the standard agent.

Please note the standard agent class is inherited from System- Queue-DefaultEntry class and we have a separate table mapping.

What could be reasons for the broken items not being re-queued.

Appreciate your help.

Thanks,

Naveen

*Edited by Moderator Kayla updated Platform Capability tags

@nagavenkatan5018

Thanks for posting the query.

When AQM is enabled, then when a queue entry is retrieved for processing by the agent activity, the system locks that entry until a commit or rollback occurs at the end of processing. (This allows one agent/node to have exclusive rights to that queue entry; no agent on another node can process it.)

If Auto Queue Management (AQM) is enabled and the system cannot commit a queue entry, AQM puts the entry into failure status and stores the entry into the Broken Process queue. From there, users who hold [email protected] can view the issue, fix it, and resubmit or delete the broken queue entry. Enable Auto Queue Management (AQM) as a best practice. If it is disabled, when an entry is retrieved for processing, the system removes the task from the queue. If the processing fails, that entry is lost and cannot be restarted in the Broken Process queue.

If a queue item went to a broken process state, We need to requeue it for the agent again after fixing the specific issue. The AQM doesn’t push the broken items automatically.

For re-queuing the broken items please check the below articles.

@nagavenkatan5018

Actually by default max attempts is set to 1. In my case also it is set as default so when an item is broken it is being requeued or retried.

Problem is solved by setting the max attempts so item will be retried for that many times.