Support Article
Issue with agent scheduling
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
- Schedule the agent regularly in different time zone compared to the local server time except for Saturday and Sunday
- Bounce the sever
- Verify the next run time
- 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.
Published August 19, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.