Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Agent fails due to rescheduling

SA-25740

Summary



The agent "SystemCleaner" fails to reschedule as describe in PDN article:

https://pdn.pega.com/support-articles/agent-fails-due-invalid-delay-interval-error

It is scheduled to run every night at midnight US/EST, and runs slightly ahead in time, leading to a rescheduling fail.

The problem does not happen on test environments. Problem is due to the agent being set to run at 12:00:00 midnight EST (America/New_York), on recurring option. The SystemCleaner agent is a native Pega agent, and cannot change its schedule by ourselves, because it is in a locked ruleset. One could change it on production specifically, but it would require us to change it manually every time user updates the production application.

There was an upgrade from PRPC 6 to Pega 7 on the 25th April on production. The problem, however, only appeared recently. The system cleaner last worked on 23rd June. It took exactly 1min 31 sec to execute.

 

Error Messages



Log error :

2016-06-23 06:00:48,636 [al-threads-53877551)] [ STANDARD] [ PegaRULES:07.10] ( internal.async.AgentQueue) ERROR - runEnd(): Code-.SystemCleaner; true @ 0: Unable to reschedule agent due to computation errors. Invalid delay interval: -48319


Agent exception on System Management Application :

Exception at 20160623T040143.504 GMT:Invalid delay time: -103358


Steps to Reproduce



Schedule SystemCleaner to run at midnight US/EST and wait.


Root Cause



User was under the assumption that the agents schedule could not be changed and had to be done through a hotfix due to the agent being a locked rule.

Resolution



Explain to the customer that the changes are done to the "Agent Schedule" and not the agent:



Select the schedule to change



Make the changes



and save the new time.

 

Published August 1, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us