How to run agent at a specific times in a day. Such as 4:00,12:00,20:00 each day.

As per my project requirement we need to run the agent at specific time on each day say 04:00,12:00,20:00. As for the recurring schedule we can run the agent only once a day. Is there any way to achieve this. Other than duplicating the agent and run it at different times each day.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

November 23, 2015 - 8:42am


Unfortunately there is no way to have the same agent run at specific times of the days as you wish to do without duplicating it to run at different times.

Andrew Fontenelle
PDN and Pega Academy Support Team

November 24, 2015 - 1:09pm

The cleanest way to do is scheduling the same agent activity multiple times with different times as you need.

If you still want to avoid the above approach, then you need to write custom Java code to schedule the agent at required times. Though we have achieved this customization at my site, I would not recommend this as it is not recommended approach.

Let me know if you still need this.

Thanks, jaffer

December 2, 2015 - 4:58pm

For recurring schedule, You can specify the start time and then recurring interval then on. Looks like your requirements is to run an agent every 8 hours. You can use recurring schedule to achieve that. 

If you have multiple nodes on the system, you can have agent starting on different times in those nodes.

Hope this helps. Interesting question though.

December 14, 2015 - 5:39am
Response to priyankpatel

If we go for recurring then there is no option to put interval. It only runs once a day at a specific time. I only easy way I can think of is to have multiple instances running at specific time.

December 14, 2015 - 12:41am

Lets say if we want to put a start and end time within that time only the agent should run periodically!! with the current OOTB feature its not possible unless you put the code in the Agent Activity (in my opinion this will be easiest if you want only one activity to behave like this).

Nonetheless this is a valid scenario in any organization.

August 18, 2017 - 6:44am


I think you can achieve this by using pattern as periodic and in interval can put 8 hrs (28800) and start your agent manually at 4:00 so that the next run will be 12:00 and next to next will 20:00 and then again 4:00 , 12:00 and 20:00 .