It is possible to run an agent activity twice a day on specific timings?

Hi

We have a requirement that we need to run an agent twice a day on specific timings 2:30 AM GMT(Batch1) and 2:30 PM GMT(Batch2).

So we have referred the agent activity in agent rule and kept recurring mode to run at 2:30 AM GMT. For second batch when we try to refer the same activity to keep recurring mode to run at 2:30 PM GMT, it is not allowing because we already referred the activity above.

That means, we cannot use the same activity twice in the same agent rule to run at different timings. So could you please let me know if there are any ideas to proceed on this.

Thanks.

Hi @KiranmaiK: System will not allow to use the same activity for 2 agent activities. You need to create wrapper activities for each. Another way is to parameterize the activity and pass parameters from agent. This will allow you to use the same activity.

Please also check if you can use job schedulers.

Thanks.

@KiranmaiK in the agent activity, in the 2nd step, try to queue the 2nd batch using delayed queue processor.

So first one, straightaway you can execute activity.

And 2nd one, you can first calculate time-> currenttime+12 hrs

Then use that time for dedicated queue processor for delayed processing.

@ArulDevan

Thank you for the reply, we are going to parameterize the activity, so that we can it call it multiple times with different parameters.

We already used jobs for the same purpose, but this agents usage is needed now.

@Anoop Krishna

Thank for your reply. Actually we can have this approach but this is not appropriate in our scenario based on client requirement.