Scheduled agent stops executing if Compact is already running on the database

  • 17 Sep, 2012

You have a scheduled agent that runs at a set frequency (such as 30 minutes). This schedule agent runs correctly most of the time. If, however, the agent attempts to execute (per its schedule) while Compact is running on the same database, the agent stops running. The agent is also removed from the scheduled queue. (The scheduled agent queue is an internal queue that keeps track of which agents need to run.) The agent is not returned to the queue until Agent Manager refreshes the Cache. By default, the Cache is refreshed at 12 a.m.

Starting with Domino 8.5.2 Fix Pack 3 and 8.5.3, you can use the following parameter to force agent retry despite the Compact:

DEBUG_AMGR_ENABLE_RETRY_ON_COMPACT=1

Workaround for earlier releases
A potential workaround is to restrict the run times of the agent to avoid the interference with Compact.  You can also change the Cache refresh to occur after Compact runs. Changing the agent refresh Cache time in the server doc is recommended to ensure that any agents that encounter the collision are recovered.

The following provides additional technical details on the expected behavior:
If Compact is processing a database while AMGR attempts to search it for agents during Agent Cache Refresh the property DBOPTION_NO_BGAGENT is set.  This flag indicates that the database does not to have any background agents which should be considered for scheduling at this time.  The DBOPTION_NO_BGAGENT property will remain set until AMGR successfully searches the database for agents when the agent Cache refresh takes place or Fixup processes the database.

To determine if the flag has been set for a database you can use the following parameter in the Domino server’s notes.ini:  debug_amgr=l (lowercase L)

The following will appear in the log:

“AmgrDbg: CheckDbForTask - Setting DBOPTION_NO_BGAGENT for database “

When the flag has been cleared by the Cache refresh or Fixup the following entry should be observed:

“AmgrDbg: CheckDbForTask - Clearing DBOPTION_NO_BGAGENT for database “

The information above is from TN 1084223

Related Posts

Migrating messages from Domino to Google using IMAP

  • 20 Feb, 2022

It's only for messages. No calendar migration Imapsync command is a tool allowing incremental and recursive imap transfers from one mailbox to another. If you don't understand the previous sentence, it's normal, it's pedantic computer-oriented jargon. All folders are transferred, recursively, meaning the whole folder hierarchy is taken, all messages in them, and all message flags (\Seen\Answered \Flagged etc.) are synced too. Imapsync reduces the amount of data transferred by not transferring a given message if it already resides on the destination side. Messages that are on the destination side but not on the source side stay as they are. Get the tool here  https://github.com/imapsyn

Migrating messages from Domino to Google using IMAPRead More

Domino V12 and Verse 2.1 How to add a Photo URL

  • 08 Jun, 2021

Today i setup a Domino V12 server just for test some new features. A customer ask to use photos on Verse hosting photos on Domino. Domino V12 comes with Verse 2.0. I just download the version 2.1 of Verse and follow the installation instructions. After the setup i just put a URL of a PNG image on the person document, field photoURL  and add the entry VOP\GK\FEATURE\230=1 to the notes.ini of the server. Works Great !(http://www.mysphere.com.br/wp-content/uploads/2021/06/verse.png)

Domino V12 and Verse 2.1 How to add a Photo URLRead More

Notes / Domino is forever

  • 04 Feb, 2021

Yesterday it seemed like it would be an ordinary working day but a client called me informing about the expiration of a certifier. It would be normal to resolve the problem with the re-certification procedures but it was a special certificate. This client has been using Notes/Domino since version 4.0.  When I saw the certificate creation date 05/09/1996 I was impressed. This customer uses the environment for mail and applications for 25 years!. How times flies I started working for this client in 1999 by installing the first R5 server (5.0.4) on an IBM Netfinity 5500 Server running Windows NT 4.0. The hardware is gone, the operating system and the administrators who created this certifer

Notes / Domino is foreverRead More