Advanced agent displays multiple thread in same run
Advance agent displays multiple threads running in the same session. Additionally, the agent attempts to commit an already committed record in the same session.
com.pega.pegarules.pub.database.DuplicateKeyException: ORA-00001: unique constraint (ABC) violated
Steps to Reproduce
- Configure an Advanced agent.
- Save the agent schedule when one run of the agent is in progress. Check the logs for unique constraint exceptions.
Agent schedules are frequently saved to disable or enable them. As one ruleset contains all the agents, a save of the unrelated agent triggers the restart of the agent queue. This caused frequent unique constraint exceptions. According to the logs, the save of the agent schedule occurs when an agent run is in progress. This works if the save occurs when the agent is sleeping in between the runs.
As a local-change, do not save the agent schedule when one agent run is in progress.
0% found this useful