Scheduled agent runs every 2 minutes

Hi all,

we have a database with a scheduled agent:

  • Target: All documents in database

  • run agent every 0 hours 5 minutes

  • all day

  • no restrictions

But from the notes-log we see that the agent executes every 2 minutes!

Can someone tell me which of the “$Assist…” fields in the agent document reflect the schedule settings of the agent.

the database inherits the agent from a template. The database instance was created by a script of my own, this script also performs the activation of the agent by

setting “agent.Servername” and agent.enabled = true

regards axel

Subject: Scheduled agent runs every 2 minutes

What exactly is in the notes.log that makes you sure, that this agent is running every 2 minutes. What’s in the agent’s log?

I doubt, that this is really going to happen. Could it be that there are multiple instances of this agent scheduled to run?

Subject: RE: Scheduled agent runs every 2 minutes

Hello Harkpabst,

these were exactly the first facts I checked before I posted the problem: There is only 1 instance of the agent and the agentlog also confirms the 2 minute interval.

axel

Subject: RE: Scheduled agent runs every 2 minutes

Here’s an cut from the serverlog:

21/11/2007 07:43:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (start)

21/11/2007 07:43:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (end)

21/11/2007 07:45:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (start)

21/11/2007 07:45:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (end)

21/11/2007 07:47:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (start)

21/11/2007 07:47:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (end)

21/11/2007 07:49:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (start)

21/11/2007 07:49:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (end)

21/11/2007 07:51:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (start)

21/11/2007 07:51:21 AMgr: Agent (‘Timecheck’ in ‘Befehlsbearbeitung/BefehlsDB.nsf’) printing: Agent - Timecheck - : (end)

I’ve modified the agent’s code to post the start and ending-time of the agent to the notes-log.

regards axel

Subject: RE: Scheduled agent runs every 2 minutes

Once you can figure out how you did it, you can sell this solution to the dozens of developers who want to kill there servers by running agents more frequently. This could make you rich …

Seriously, I’m running out of ideas. I don’t think that the schedule information is in any of the items as clear text, but I’m not 100% sure. Starting to think of it as a possible bug in 6.5.2 …

Subject: RE: Scheduled agent runs every 2 minutes

In the meantime I’ve checked other databases with similar agents and which are installed by (my) the same script:Independent of the database and the server:

alle these agents run every 2 minutes.

Finally I manually installed a testdatabase and activated the agents “by hand”: These agents will execute every 5 minutes.

Up to now I don’t know if there’s something wrong with my installation script.

One last info ( for tonight ):

The agents contained in the template are set to

Run on: “-Any server-”

“Choose server when agent is enabled” deselected.

Subject: Scheduled agent runs every 2 minutes ( Solved?)

In order to fix the schedule interval I exported the - template

  • database ( created from my script from template )

  • manual testdb ( created by hand from template )

as dxl:

Agent settings in Template:

<agent name=‘Timecheck’ hide=‘v3’ noreplace=‘true’ publicaccess=‘false’ designerversion=‘6’

restrictions=‘unrestricted’ activatable=‘false’ enabled=‘false’>

Agent settings in database

<agent name=‘Timecheck’ hide=‘v3’ publicaccess=‘false’ designerversion=‘6.5’

runonbehalfof=‘CN=Admin/O=SKBw’ restrictions=‘unrestricted’ activatable=‘false’>

Agent settings in testdb

<agent name=‘Timecheck’ hide=‘v3’ publicaccess=‘false’ designerversion=‘6.5’

restrictions=‘unrestricted’ activatable=‘false’>

See the minutes=‘0’ entry in the template-agent!!!

In the template I edited the runtime schedule:

initial display all 5 minutes

I couldn’t enter ‘0’ but ‘1’ minutes

Saved the agent, exported as dxl again

Result

So I will correct the agent schedule in the template.

It might be useful to investigate the effective schedule of an agent created from imported dxl

axel