My first question on StackOverflow so bear with me ..
I want to create a scheduled agent, to run say tonight between 23:00 and 01:00, every half an hour. It MUST NOT run befpre then.
Domino seems to have me snookered.
If I set the agent schedule to be more than once a day, every half hour, between the times as above, with target All Documents .. it runs straight away after I save it.
If I disable it, set all this up, then enable it .. it runs straight away after being enabled.
It seems that if you have an agent whcih should run more than once a day, it always runs right away.
Note that I'm aware I can put some LotusScript code in the agent to quit if the time is before say 21:00 so that the first run doesn't do anything. Surely .. I shouldn't need to do that!
But anyway, this doesn't help if the agent is a Formula one. There's no option to quit like that, unless you put in something like
@if(@hour(@now)<21;@return("");"continue);
.. as the first line which is really messy.
So .. the question:
How can I set it up so that I save the agent to run more than once a day, and it only runs after the time I specify ?
Thanks!
EDIT: with a LotusScript agent there are a few options on how to stop the first run. However the real issue was a Formula agent. I didn't write the agent and there isn't time to re-write it in LotusScipt- so it has to be formula. It's also much faster in Formula !
The agent ran on 22,000 documents and changed one simple field. The @if(@hour(@now)<21;@return("");"continue); line would work but it's really clumsy.
Scheduled agents only run 'immediately' if their scheduled time to run that day has already passed. Since it was scheduled to run until 1am and hadn't yet run, it would run. If it had been scheduled for 2300-2359, it would not.