Support Article
Advanced agent running on multiple nodes
SA-81270
Summary
An advanced agent is scheduled on two nodes and configured to run on only one node at a time. However, the the agent is running on both the nodes simultaneously.
Error Messages
Not Applicable
Steps to Reproduce
- Create an advanced agent to send an email.
- Select the 'Run this agent on only one node at a time' checkbox in the Agent rule.
- Schedule the agent to run on two nodes.
Root Cause
This behavior is as per Pega product design.
Debug logging was enabled on the below classes:
- com.pega.pegarules.session.internal.async.BatchRequestorTask
- com.pega.pegarules.session.internal.async.AgentQueue
- com.pega.pegarules.session.internal.async.agent.QueueProcessor
Resolution
Perform the following local-change to ensure the agent does not run for a period of time after it has run on one node:
Configure the 'Delay next run of agent across the cluster by specified time period' setting on the agent rule.
For more information, refer to: https://community.pega.com/sites/default/files/help_v731/procomhelpmain.htm#rule-/rule-agent-/rule-agent-queue/schedule.htm
Published September 6, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.