Posted: 3 May 2016 5:06 EDT Last activity: 6 May 2016 1:17 EDT
How to make an agent runs exactly at specifc time with multiple times a day?
We are using PRPC 6.1 SP2. We have a requirement to send the batch for each hour exectly starts at 9AM and ends at 6PM.
We have handled start and end time in agent activity, if the current time falls beyond the limit will not be processed but how can we make the agent to start at 9AM.(Agent would be started as and when the server is restarted but may not be exact hour the server started). External system expects 10 batches every day. If any delay in agent processing will not sent expected number of batch files.
slight correction I think Rodolphe meant to keep the agent interval as 60 minutes since the requirement I understood as to run the agent every one hour for 10 hours in time period of 9 am to 6 pm. Please correct me if I am wrong
No this is not my point. The agent interval must be set to 60 seconds because the batch activity must be run at a 9:00AM (and not 9:15 or 9:30). This cannot be enforced using standard advanced agent scheduling parameters. So the idea here is to trigger the agent each minutes but exit the batch activity called by this agent if the system timestamp do not match the expected hour and minute.
Configured agent to run for every 60 secs and each time checking if the hour of current time is reaching the specific time and because the interval is 60secs, we could able to generate the batch precisely the time it should run.
It could be better if the pega can able to handle both periodic and recurring interval scenarios like this thorugh agent configuration.