« Unexpected truncated documents | Main| There is no secondary sort column for this view »

Prevent agent from running after being saved

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

It often happens that an agent that is supposed to run once per day immediately runs after the agent is being modified and saved although the agent already ran that day.
I always try to prevent that from happening by setting the agent schedule to start running as of tomorrow. Today I learned that ever since Domino 7 there is also a notes.ini setting preventing the agent from running. Just add Amgr_SkipPriorDailyScheduledRuns=1 to your server notes.ini!

Comments

Gravatar Image1 - Just today I had this happen. Couldn't be more timely!

Thanks!Emoticon

Gravatar Image2 - Typically, I move all of the agent logic into a script library. That way, the scheduled agent is a simply one-liner that calls a subroutine in the script library and I can make any changes I like to the logic without initiating agent execution.

The other benefit I achieve using this method is that I can trigger the logic both manually and on schedule, so I can make/test changes to the logic based on whether or not the session is being run on the server.

Just another way to skin the cat I guess!

Gravatar Image3 - @2, that's great Terry, I also resort to the same method because of the same advantage plus to avoid the headache of signing n resigning the agent for every changes made(in case trouble shooting on staging server/production).
But once in a while we do have to open the agent and re-save it because of "Error Loading USE or USELX Module"

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

OpenNTF random projects

PlanetLotus