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

Issue with agent scheduling

SA-73501

Summary

User encounters the below two issues:

Issue 1
The server is set as per the CET time zone and the agent is scheduled to run at 09:00PM EST. When the server starts after 09:00PM EST , the agent must be scheduled to the next day, instead, its scheduled to the current day at 09:00 PM EST.


Issue 2
The server is set as per the CET time zone and the agent is scheduled to run at 09:00PM EST on all days of week except Saturday and Sunday. However, the agent run is skipped on Fridays.

 

Error Messages


Not Applicable


Steps to Reproduce

  1. Schedule the agent regularly in different time zone compared to the local server time except for Saturday and Sunday 
  2. Bounce the sever
  3. Verify the next run time
  4. Verify if the agent run is skipped on Fridays 


Root Cause



Issue 1
According to the getNextExecutionTime() API, if StartDateTime is after the CurrentDateTime, it can run the current day, which is incorrect. 

Issue 2 
The last execution time is noted in the JVM time zone. However, the calculations are performed in pyUseTimeZone which is rendered in the agent schedule. The last execution time must also be noted in pyUseTimeZone.


Resolution

Apply HFix-50389. 


 

Suggest Edit

Published August 19, 2019 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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