Da es offenbar hier gegensätzliche Meinungen gibt, habe ich es ausprobiert (unter R5): Periodische Agenten laufen auch in Template. Das finde ich logisch und falls es in R6 nicht so wäre, fände ich es unlogisch bzw. eigentlich einen Bug.
In der KBASE steht (#174470):
Agent Manager Runs Agents in Template Instead of in Database
Problem:
The Agent Manager runs agents in a Template, but you expect it to run the agents in a Database that uses the Template.
Steps To Reproduce Issue:
Open a Scheduled Agent in a template.
Modify the agent and re-save it. Make sure the box is selected for the Agent to be scheduled since you want it to be scheduled on the database that is updated/modified by this template.
Normally the Agent Manager does not look in template (.ntf) for agents, but if you open, modify and re-save an agent in a template, and the agent is set to scheduled, then Agent Manager will run it. This can be seen by issuing the following command at the server console:
tell Amgr status
Agents in databases and the modified template(s) will then appear, if the agents are checked as scheduled in the Agent view of the database. Thinking that it is only because the agent is cached (as you have modified it) you try the following command, but it does not help:
You try the following command, thinking that it is only because the agent is cached (as you have modified it). However, it does not help.
dbCache flush
Solution:
This issue was reported to Lotus Quality Engineering but deemed not to be a problem with Notes. The design elements of templates, including agents, function as full fledged databases. This is necessary so you can develop a complete Notes application using a template, which includes being able to schedule agents with the Agent Manager.
There are three workarounds:
- Reboot the server. Agent Manager does not pick up on Agents in the template (.ntf).
- Wait for the cache to refresh for Agent Manager to stop finding this agent (the default is 12:00 AM, as specified in the Server document). This is also not always an option.
- Do not have the scheduled agents selected on the template. HOWEVER, this could be a potential danger; if a database design is refreshed with this template and the scheduled agent is unchecked, then the Agent on the database becomes unchecked and you have to manually set it on the database for it to take effect again.
Mir unverständlich fehlt der Hinweis auf die Datenbankeigenschaft "Hintergrund-Agenten in dieser Datenbank deaktivieren".
Andreas