SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Does "Run another job" have an execu

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Does "Run another job" have an execu
Author Message
Leigh Riffel



Joined: 16 Jul 2004
Posts: 10

Post Does "Run another job" have an execution Reply with quote

I have a job that on the Event "Job Finish" performs the action "Run another job".
This is setup on step 6 of the job properties. The job it is set to run is the
same job as is being run in the first place. My problem is that this mechanism
seems to stop working after 1000-2000 executions. Is there a known issue with
this or is a job calling itself on completion bad practice according to the
documentation?

I have tested the behavior in a simple JAL job I created that has the one line
"Wait(1)". As this causes it to wait only one second before the job ends it
allows the problem to be reproduced in under three hours. I also set it up to
run as asynchronous, detached on scheduler startup. By restarting the scheduler
to get it running I can then simply monitor the icon created in the taskbar to
see when the job disappears.

Fri Jul 23, 2004 5:06 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Does "Run another job" have an execu Reply with quote

It surely runs out of stack (stack overflow) which must be causing the job queue to hang (in the best case)

If you want to run a job every second you se a different method such as endless loop
Here is a simple script type job

Dim forever, boolean, true
LoopWhile forever, END_LOOP

Wait 1

// ... here you run the main processing ...
END_LOOP:

: I have a job that on the Event "Job Finish" performs the action
: "Run another job".
: This is setup on step 6 of the job properties. The job it is set to run is
: the
: same job as is being run in the first place. My problem is that this
: mechanism
: seems to stop working after 1000-2000 executions. Is there a known issue with
: this or is a job calling itself on completion bad practice according to the
: documentation?

: I have tested the behavior in a simple JAL job I created that has the one
: line
: "Wait(1)". As this causes it to wait only one second before the job
: ends it
: allows the problem to be reproduced in under three hours. I also set it up to
: run as asynchronous, detached on scheduler startup. By restarting the
: scheduler
: to get it running I can then simply monitor the icon created in the taskbar
: to
: see when the job disappears.

Fri Jul 23, 2004 10:43 pm View user's profile Send private message
Leigh Riffel



Joined: 16 Jul 2004
Posts: 10

Post Re: Does "Run another job" have an execu Reply with quote

That makes sense. Perhaps a note of this limitation could be added to the
documentation. I will attempt another methodology as you suggest.

: It surely runs out of stack (stack overflow) which must be causing the job
: queue to hang (in the best case)

: If you want to run a job every second you se a different method such as
: endless loop
: Here is a simple script type job

: Dim forever, boolean, true
: LoopWhile forever, END_LOOP

: Wait 1

: // ... here you run the main processing ...
: END_LOOP:

Mon Jul 26, 2004 9:13 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.