Subject: Agent Scheduled to Run at 11pm daily runs immediately when saved…
Why it’s not running on schedule, no – but running when saved/enabled? That’s the expected behaviour, since the agent shows as not having run in its current incarnation at its last scheduled time. There is a notes.ini entry to override the behaviour, though, introduced for Domino 7:
Amgr_SkipPriorDailyScheduledRuns = 1
You might want to enable the agent manager debugger to see what’s going on with subsequent runs.
Subject: RE: Agent Scheduled to Run at 11pm daily runs immediately when saved…
Hi Nathan,
when you tried to run a scheduled agent it runs immediately becuase of the agent does knowing that whehter it has ran for the day or not, so it runs on act.
so it is better to scheduled it on next by hoping some work.
neverthless check your agent log what kind of processing it has.
Subject: RE: Agent Scheduled to Run at 11pm daily runs immediately when saved…
Stan already explained what is happening and how to work around it.
The more interesting question is, why the agent does not run when it’s supposed to. Nathan, you say the agent should run at 11pm, and later you say it is “scheduled to run at x hours”. If this means, it is scheduled to run more than once a day, every x hours, how do you know it should run at 11pm, exactly?
With all scheduled agents, you can never be sure that they execute exactly the minute you would expect them to. How do you tell, that the agent didn’t run? Did you have a look at the agent log? If the agent appears to “do nothing”, that still doesn’t mean that it didn’t run (or try to). Do you use some logging in your agent (preferably OpenLog)? If not, go and add it.
Subject: RE: Agent Scheduled to Run at 11pm daily runs immediately when saved…
Sorry, by x hours, I mean it is scheduled to run once a day at 11pm. I don’t need it to execute at exactly 11pm, but sometime around that (within 15 minutes afterwards) would be fine.
The agent log shows only that it ran when saved. I’ll check with the devs on the logging. Good question.
We tried to reproduce it in our UAT & Dev environments with no success so I’ll need to go over our configs and see if there is any deviation.