Question
COFORGE DPA UK LTD
GB
Last activity: 26 May 2020 19:07 EDT
How to control advance agent execution with Periodic Pattern on week days
Hi team,
I have a requirement to run agent full day during weekend in periodic pattern to process thousands of records. Interval of the agent execution is 10 sec.
I have an option to add when rule using calander at first step in agent activity. if there is weekend then excute rest of the steps. But this option is executing activity unnecessary on week days as well which is consuming resources unnecessary.
How can we avoid running this agent on week days?
***Edited by Moderator: Lochan to update platform capability tags***
Thanks
Gaurav
Hello Gaurav,
That's a good question. There isn't an easy way that I'm aware of the have an agent run periodically on the weekend, and not at all during the week. Your solution to have a when rule that exits out of the activity when you don't want it to run is a good one. If you aren't noticing significant performance impacts (I know you mentioned that was a concern), I'd stick with that. Another idea that comes to mind would be to create to more agents, one schedule to run at the start of your weekend and another at the end. Have them update the data-agent-queue records for your agent to enable/disable it. Then it can be scheduled to run every 10 seconds, but gets disabled Sunday evening, so it doesn't run all week, and then gets enabled Saturday morning and starts running again. I've never actually built such a mechanism, so I don't know what surprises you'll need to overcome, but theoretically it should work.
Thanks,
Mike