Issue with agent scheduling
User encounters the below two issues:
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.
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.
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
According to the getNextExecutionTime() API, if StartDateTime is after the CurrentDateTime, it can run the current day, which is incorrect.
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.
Published August 19, 2019 - Updated October 8, 2020
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.