I have scheduled agent that is set to run on a specific server in an application that has replicas on other servers.
If I envoke this agent from the UI via LS using agent.RunOnServer, will it run on the server specified in the schedule or will it run on the server the agent was invoked from?
Thanks
Subject: Agent Run On Server
It will run on the server that you tell it to, based on where you point the notesdatabase object that you use to get hold of the agent.
If you use session.currentdatabase, then it will be on the server where the database resides that you are running the code from.
Subject: RE: Agent Run On Server
Thank you